The Flutter DevTools UI Kit Living Style Guide
The Flutter DevTools Living Style Guide provides a unified visual experience, establishes consistent UX for features, and maintains the expected look and feel of the complete suite of tools. It is the single source of truth for teams (product, ux, engineering) to refer to for UI changes, for iterations, and when developing new features.
Flutter Layout: Understanding, Using, and Resolving Text Overflow Issues using Flutter’s Dart DevTools
Understanding Flutter’s Layout Paradim Purpose and common info about it all: articles, tutorials and various resources devoted to common layout issues.
Positions are set by parents.
The Flutter layout paradim is very different from HTML layout paradim: so it’s best to breakdown how layout works within the Flutter framework.
- ?A widget gets its own constraints from its parent. A “constraint” is just a set of 4 doubles: a minimum and maximum width, and a minimum and maximum height.
- ?Then the widget goes through its own list of children. One by one, the widget tells its children what are their constraints (which can be different for each child), and then asks each child which size it wants to be.
- ?Then, the widget positions its children (horizontally in the x axis, and vertically in the y axis), one by one.
- ?And, finally, the widget tells its parent about its own size (within the original constraints, of course).
Resources
Articles
- Test your Flutter widgets using golden files : Testing how widgets get rendered with different screen sizes and enabling notifications when the look of a widget changes.
-
Flutter: The Advanced Layout Rule Even Beginners Must Know :header
-
Flutter — Row/Column Cheat Sheet :Flutter ‘s use of Row & Column for Layouts
- Page Transitions Using ThemeData in Flutter : How to apply page transitions to the entire app.
- Flutter Widget Inspector: How can I visualize a widget’s place in its complete widget tree?
Tutorials
- How I Made My Own App (which you can download) : For anyone who’s ever asked “Is it February the 29th?”
- Flutter Tutorial for Beginners #4 - Creating a Flutter App : The Net Ninja’s Flutter Tutorials
- Flutter - Inspecting the Widget Tree: Using the inspector to find a widget tree and render tree
Github
StackOverflow
- How to use Flutters Widget Inspector in Visual Studio Code? Functionality of Dart’s DevTools in the DevTools
CodePens
-
Flutter Box Constraints:Box Constraints Visualization
-
How to use Flutter’s Widget Inspector in Visual Studio Code? Functionality of Dart’s DevTools in the DevTools
CodePens
- Flutter Box Constraints :Box Constraints Visualization
Documentation
- Using the Flutter inspector: The Flutter widget inspector is a powerful tool for visualizing and exploring Flutter widget trees.
Gists: Visualizing Common Layout Issues with Flutter Tools and Solutions
- Flutter RenderOverflow Errors using CustomMultiChild : Sample Overflow Challenge: Using CustomMultiChild Layout to Resolve RenderOverflow Errors
- Flutter RenderOverflow Solution using CustomMultiChild : Sample Overflow Solution: Using CustomMultiChild Layout to Resolve RenderOverflow Errors
- Flutter RenderOverflow Solution using Flexible Widget: Using Flexible Widget to solve render flex overflow errors
- Flutter RenderOverflow Solution using Expanded Widget: Using Expanded Widget to solve render flex overflow errors
- Flutter Box Constraints: Box Constraints Visualization; no text clipping issues/errors but can have a render overflow error in the column