From af463b8fe91fd899993d4924c3b03b81508b551d Mon Sep 17 00:00:00 2001 From: Andrew Brogdon Date: Tue, 3 Jul 2018 11:12:47 -0700 Subject: [PATCH] Addressing comments. --- shrine/README.md | 2 +- shrine/lib/app.dart | 2 +- shrine/lib/backdrop.dart | 2 +- shrine/lib/model/app_state_model.dart | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/shrine/README.md b/shrine/README.md index ee1dd35b5..32f685266 100644 --- a/shrine/README.md +++ b/shrine/README.md @@ -6,7 +6,7 @@ manage the state of its shopping cart. ## Goals -* Show how to customize Flutter's Material Compoenent widgets to produce +* Show how to customize Flutter's Material Component 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. diff --git a/shrine/lib/app.dart b/shrine/lib/app.dart index 68264f176..d6987f2c3 100644 --- a/shrine/lib/app.dart +++ b/shrine/lib/app.dart @@ -15,10 +15,10 @@ import 'package:flutter/material.dart'; import 'backdrop.dart'; +import 'category_menu_page.dart'; import 'colors.dart'; import 'home.dart'; import 'login.dart'; -import 'category_menu_page.dart'; import 'model/product.dart'; import 'supplemental/cut_corners_border.dart'; diff --git a/shrine/lib/backdrop.dart b/shrine/lib/backdrop.dart index c96227aad..fc3bbbe8c 100644 --- a/shrine/lib/backdrop.dart +++ b/shrine/lib/backdrop.dart @@ -15,8 +15,8 @@ import 'package:flutter/material.dart'; import 'package:meta/meta.dart'; -import 'model/product.dart'; import 'login.dart'; +import 'model/product.dart'; import 'shopping_cart.dart'; const double _kFlingVelocity = 2.0; diff --git a/shrine/lib/model/app_state_model.dart b/shrine/lib/model/app_state_model.dart index e5ba4b2ac..1f9e18fd3 100644 --- a/shrine/lib/model/app_state_model.dart +++ b/shrine/lib/model/app_state_model.dart @@ -13,11 +13,12 @@ // limitations under the License. import 'package:scoped_model/scoped_model.dart'; + import 'product.dart'; import 'products_repository.dart'; -double _shippingCostPerItem = 7.0; double _salesTaxRate = 0.06; +double _shippingCostPerItem = 7.0; class AppStateModel extends Model { // All the available products.