Addressing comments.

pull/3/head
Andrew Brogdon 8 years ago
parent 0bb8eee7e8
commit 0944168382

@ -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.

@ -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';

@ -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;

@ -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.

Loading…
Cancel
Save