mirror of
https://github.com/flutter/samples.git
synced 2026-04-07 12:14:27 +00:00
Follow best practice of ProxyProvider updating (#298)
* Upgrade to pkg:provider 4.0 * Follow best practice of ProxyProvider updating The addresses feedback from https://github.com/flutter/samples/issues/245. Instead of constructing a new `CartModel`, we merely update the `catalog` field. We no longer need a fancy constructor, and `CartModel._catalog` cannot be final any more.
This commit is contained in:
@@ -88,6 +88,13 @@ packages:
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.8"
|
||||
nested:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: nested
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.0.4"
|
||||
path:
|
||||
dependency: transitive
|
||||
description:
|
||||
@@ -115,7 +122,7 @@ packages:
|
||||
name: provider
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "3.2.0"
|
||||
version: "4.0.2"
|
||||
quiver:
|
||||
dependency: transitive
|
||||
description:
|
||||
@@ -193,3 +200,4 @@ packages:
|
||||
version: "3.5.0"
|
||||
sdks:
|
||||
dart: ">=2.5.0 <3.0.0"
|
||||
flutter: ">=1.12.1"
|
||||
|
||||
Reference in New Issue
Block a user