mirror of
https://github.com/flutter/samples.git
synced 2026-03-22 04:17:50 +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:
@@ -11,7 +11,7 @@ dependencies:
|
||||
sdk: flutter
|
||||
|
||||
# Import the provider package.
|
||||
provider: ^3.1.0
|
||||
provider: ^4.0.2
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
||||
Reference in New Issue
Block a user