Skip to content

Commit ae6189f

Browse files
author
Julian Currie
committed
Added the provider package and created a User model
1 parent 6d1953e commit ae6189f

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

lib/model/user.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class User {
2+
String name;
3+
int age;
4+
}

pubspec.lock

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,27 @@ packages:
8181
url: "https://pub.dartlang.org"
8282
source: hosted
8383
version: "1.3.0-nullsafety.3"
84+
nested:
85+
dependency: transitive
86+
description:
87+
name: nested
88+
url: "https://pub.dartlang.org"
89+
source: hosted
90+
version: "0.0.4"
8491
path:
8592
dependency: transitive
8693
description:
8794
name: path
8895
url: "https://pub.dartlang.org"
8996
source: hosted
9097
version: "1.8.0-nullsafety.1"
98+
provider:
99+
dependency: "direct main"
100+
description:
101+
name: provider
102+
url: "https://pub.dartlang.org"
103+
source: hosted
104+
version: "4.3.3"
91105
sky_engine:
92106
dependency: transitive
93107
description: flutter
@@ -151,3 +165,4 @@ packages:
151165
version: "2.1.0-nullsafety.3"
152166
sdks:
153167
dart: ">=2.10.0-110 <2.11.0"
168+
flutter: ">=1.16.0 <2.0.0"

pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ environment:
1919
dependencies:
2020
flutter:
2121
sdk: flutter
22+
provider: ^4.3.3
2223

2324
# The following adds the Cupertino Icons font to your application.
2425
# Use with the CupertinoIcons class for iOS style icons.

0 commit comments

Comments
 (0)