Skip to content

Commit 8e9837a

Browse files
committed
feat: 解决升级flutter版本以后遇到的版本
目前flutter版本为1.7.0+hotfix.3
1 parent eac4938 commit 8e9837a

File tree

10 files changed

+169
-38
lines changed

10 files changed

+169
-38
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ Tools • Dart 2.4.0
8787
flutter packages pub run build_runner build
8888
flutter packages pub run build_runner watch
8989
flutter packages pub run build_runner watch --delete-conflicting-outputs
90+
flutter packages pub run build_runner clean
9091
```
9192

9293
## 运行

lib/stores/findStore.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ part 'findStore.g.dart';
1010
class FindStore = _FindStore with _$FindStore;
1111

1212
// The store-class
13-
abstract class _FindStore implements Store {
13+
abstract class _FindStore with Store {
1414
@observable
1515
bool tile = false;
1616

@@ -29,3 +29,5 @@ abstract class _FindStore implements Store {
2929
print(response);
3030
}
3131
}
32+
33+
FindStore $store = FindStore();

lib/stores/findStore.g.dart

Lines changed: 67 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/stores/loginStore.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ part 'loginStore.g.dart';
99
class LoginStore = _LoginStore with _$LoginStore;
1010

1111
// The store-class
12-
abstract class _LoginStore implements Store {
12+
abstract class _LoginStore with Store {
1313
@observable
1414
bool tile = false;
1515

@@ -28,3 +28,4 @@ abstract class _LoginStore implements Store {
2828
print(response);
2929
}
3030
}
31+
LoginStore $store = LoginStore();

lib/stores/loginStore.g.dart

Lines changed: 67 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/stores/registerStore.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ part 'registerStore.g.dart';
1010
class RegisterStore = _RegisterStore with _$RegisterStore;
1111

1212
// The store-class
13-
abstract class _RegisterStore implements Store {
13+
abstract class _RegisterStore with Store {
1414
// 用户信息
1515
Map<String, String> reginterInfo = {
1616
'email': 'animg02',
@@ -31,3 +31,4 @@ abstract class _RegisterStore implements Store {
3131
reginterInfo[key] = value;
3232
}
3333
}
34+
RegisterStore $store = RegisterStore();

lib/stores/registerStore.g.dart

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/stores/state.dart

Lines changed: 0 additions & 32 deletions
This file was deleted.

pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ packages:
388388
name: photo_view
389389
url: "https://pub.flutter-io.cn"
390390
source: hosted
391-
version: "0.3.3"
391+
version: "0.4.2"
392392
pool:
393393
dependency: transitive
394394
description:

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ description: A new Flutter project.
1414
version: 1.0.0+1
1515

1616
environment:
17-
sdk: ">=2.1.0 <3.0.0"
17+
sdk: ">=2.1.0-dev <3.0.0"
1818

1919
dependencies:
2020
flutter:
@@ -31,7 +31,7 @@ dependencies:
3131
fluro: "^1.4.0"
3232
provider: ^2.0.1
3333
dio: 2.1.0
34-
photo_view: 0.3.3
34+
photo_view: 0.4.2
3535
json_annotation: ^2.0.0
3636

3737
dev_dependencies:

0 commit comments

Comments
 (0)