1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00
Files
samples/veggieseasons
Filip Hracek fa356540c6 Ensure flutter format and fix offending files (#80)
The current Travis script will only print offending files, but won’t fail the build. Added `--set-exit-if-changed` to fix that.

Also, simplified the call from using `grep` and `xargs` to simple `flutter format .`, which recurses directories.

Lastly, fixed offending files that needed `dartfmt`. (But not in the directories that aren’t covered by `travis_script.sh`.
2019-05-21 13:30:37 -07:00
..
2019-04-09 00:52:16 -07:00
2019-05-05 17:25:57 -07:00

Veggie Seasons

An app that shows which fruits and vegetables are currently in season. It showcases Flutter's Cupertino package.

Available now in the App Store!

Goals

  • Show how to build an interface that iOS users will feel right at home with.
  • Show how Flutter's Cupertino widgets work together.

The important bits

/screens/*

These are the screens presented in the app, roughly analogous to UIViewControllers. HomeScreen is the root, and the others are shown as the user navigates.

/widgets/search_bar.dart

An example of how to construct an Cupertino-style search bar. The Flutter team is working on an official widget for this. Once that effort is complete, developers will not need to roll their own search bars, so to speak.

Questions/issues

If you have a general question about any of the techniques you see in the sample, the best places to go are:

If you run into an issue with the sample itself, please file an issue in the main Flutter repo.