From 0bb8eee7e8d571d494d655956ccfa8b0339eb245 Mon Sep 17 00:00:00 2001 From: Andrew Brogdon Date: Fri, 29 Jun 2018 15:05:36 -0700 Subject: [PATCH] Addressing comments. --- shrine/README.md | 32 ++++++++++++++++---------------- shrine/test/main_test.dart | 1 + shrine/test/widget_test.dart | 7 ------- 3 files changed, 17 insertions(+), 23 deletions(-) create mode 100644 shrine/test/main_test.dart delete mode 100644 shrine/test/widget_test.dart diff --git a/shrine/README.md b/shrine/README.md index f6ab8efb8..ee1dd35b5 100644 --- a/shrine/README.md +++ b/shrine/README.md @@ -1,15 +1,15 @@ -# shrine +# Shrine A sample shopping app that uses Material widgets in its UI and -[`scoped_model`](https://pub.dartlang.org/packages/scoped_model) to manage the -state of its shopping cart. +[`scoped_model`](https://pub.dartlang.org/packages/scoped_model) to +manage the state of its shopping cart. -## Goals for this sample +## Goals -* Show how to customize Flutter's Material widgets to produce a unique design - for an app. -* Show how to use `scoped_model` to manage an app's state and access it across - different routes and in different widgets. +* Show how to customize Flutter's Material Compoenent widgets to produce + a unique design for an app. +* Show how to use `scoped_model` to manage an app's state and access it + across different routes and in different widgets. This is a modified version of the app featured in Flutter's [Material codelabs](https://codelabs.developers.google.com/?cat=Flutter). @@ -18,24 +18,24 @@ This is a modified version of the app featured in Flutter's ### `/model/app_state_model.dart` -The model object representing the state of the app. It holds the available -products as well as what's in the shopping cart. +The model object representing the state of the app. It holds the +available products as well as what's in the shopping cart. ### `/supplemental` -A bunch of widgets that customize Material to produce the look and feel of the -app. +A bunch of widgets that customize Material to produce the look and feel +of the app. ### `shopping_cart.dart` The shopping cart widgets. They access the app state model via -`ScopedModelDescendant`, display the contents of the shopping cart, and allow -the user to edit them. +`ScopedModelDescendant`, display the contents of the shopping cart, and +allow the user to edit them. ## 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 have a general question about any of the techniques you see in +the sample, the best places to go are: * [The FlutterDev Google Group](https://groups.google.com/forum/#!forum/flutter-dev) * [The Flutter Gitter channel](https://gitter.im/flutter/flutter) diff --git a/shrine/test/main_test.dart b/shrine/test/main_test.dart new file mode 100644 index 000000000..ab73b3a23 --- /dev/null +++ b/shrine/test/main_test.dart @@ -0,0 +1 @@ +void main() {} diff --git a/shrine/test/widget_test.dart b/shrine/test/widget_test.dart deleted file mode 100644 index 0fe9fbd18..000000000 --- a/shrine/test/widget_test.dart +++ /dev/null @@ -1,7 +0,0 @@ -// This is a basic Flutter widget test. -// To perform an interaction with a widget in your test, use the WidgetTester utility that Flutter -// provides. For example, you can send tap and scroll gestures. You can also use WidgetTester to -// find child widgets in the widget tree, read text, and verify that the values of widget properties -// are correct. - -void main() {}