1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-10 14:58:34 +00:00

flutter pub upgrade (#178)

This commit is contained in:
Brett Morgan
2019-12-18 10:54:58 +11:00
committed by GitHub
parent f6c3f889e6
commit d71180683c
24 changed files with 159 additions and 66 deletions

View File

@@ -17,7 +17,7 @@ void main() {
// Initialize the model in the builder. That way, Provider
// can own Counter's lifecycle, making sure to call `dispose`
// when not needed anymore.
builder: (context) => Counter(),
create: (context) => Counter(),
child: MyApp(),
),
);

View File

@@ -63,7 +63,7 @@ packages:
name: cupertino_icons
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2"
version: "0.1.3"
flutter:
dependency: "direct main"
description: flutter
@@ -122,7 +122,7 @@ packages:
name: provider
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.0+1"
version: "3.2.0"
quiver:
dependency: transitive
description:

View File

@@ -12,7 +12,7 @@ void main() {
// Build our app, provide it with a model, and trigger a frame.
await tester.pumpWidget(
ChangeNotifierProvider(
builder: (context) => Counter(),
create: (context) => Counter(),
child: MyApp(),
),
);