Ian Hickson 47f5c6f2e0 Add even more careful checks around BoxConstraints (#3243)
I ran into a case where I was setting minHeight=∞ and then calling
layout() with that constraint, which is all kinds of bad. To try to
catch this earlier, this patch now provides a way to catch constraints
that are requiring infinite values.

We don't _always_ check this because there are valid uses for
BoxConstraints.biggest, e.g. as an additionalConstraint.
2016-04-11 11:10:11 -07:00
..
2016-04-08 10:25:41 -07:00
2016-03-14 13:32:00 -07:00
2016-02-12 08:27:47 -08:00

Flutter Examples

This directory contains several examples of using Flutter. Each of these is an individual Dart application package.

To run a sample with the flutter tool, run pub get inside its directory, then run flutter run. (See the getting started guide to install the flutter tool.)

Available examples include:

  • Hello, world The hello world app is a basic app that shows the text "hello, world."

  • Stocks The stocks app is an example of a typical mobile app built using Flutter. The app shows a list of all the stocks in the NASDAQ.

  • Widgets The widget apps demonstrate a number of Flutter widgets so you can experiment with them in a simple container. There is no main.dart in this directory because each file is a standalone sample. To run a particular file, use flutter run -t filename.dart.