-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
401 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
// 使用 IntelliSense 了解相关属性。 | ||
// 悬停以查看现有属性的描述。 | ||
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Flutter", | ||
"request": "launch", | ||
"type": "dart" | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-22.6 KB
(60%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/App Store-1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-918 Bytes
(76%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.56 KB
(74%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-582 Bytes
(77%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/iPad App-76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.36 KB
(74%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/iPad [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-117 Bytes
(82%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/iPad Notifications-20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-272 Bytes
(79%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/iPad [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.48 KB
(74%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/iPad Pro [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-205 Bytes
(78%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/iPad Settings-29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-413 Bytes
(78%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/iPad [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-272 Bytes
(79%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/iPad Spotlight-40.png
Oops, something went wrong.
Binary file modified
BIN
-610 Bytes
(76%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/iPad [email protected]
Oops, something went wrong.
Binary file modified
BIN
-918 Bytes
(76%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/iPhone [email protected]
Oops, something went wrong.
Binary file modified
BIN
-1.56 KB
(74%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/iPhone [email protected]
Oops, something went wrong.
Binary file modified
BIN
-272 Bytes
(79%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/iPhone [email protected]
Oops, something went wrong.
Binary file modified
BIN
-420 Bytes
(78%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/iPhone [email protected]
Oops, something went wrong.
Binary file modified
BIN
-413 Bytes
(78%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/iPhone [email protected]
Oops, something went wrong.
Binary file modified
BIN
-706 Bytes
(75%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/iPhone [email protected]
Oops, something went wrong.
Binary file modified
BIN
-610 Bytes
(76%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/iPhone [email protected]
Oops, something went wrong.
Binary file modified
BIN
-918 Bytes
(76%)
ios/Runner/Assets.xcassets/AppIcon.appiconset/iPhone [email protected]
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
69 changes: 0 additions & 69 deletions
69
ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
This file was deleted.
Oops, something went wrong.
Diff not rendered.
Binary file removed
BIN
-60 KB
ios/Runner/Assets.xcassets/LaunchImage.imageset/iPad [email protected]
Diff not rendered.
Diff not rendered.
Binary file removed
BIN
-61.3 KB
ios/Runner/Assets.xcassets/LaunchImage.imageset/iPad [email protected]
Diff not rendered.
Diff not rendered.
Binary file removed
BIN
-59.1 KB
ios/Runner/Assets.xcassets/LaunchImage.imageset/iPhone Landscape-Retina HD 5.5.png
Diff not rendered.
Binary file removed
BIN
-62.5 KB
ios/Runner/Assets.xcassets/LaunchImage.imageset/iPhone Landscape-X.png
Diff not rendered.
Binary file removed
BIN
-21.1 KB
ios/Runner/Assets.xcassets/LaunchImage.imageset/iPhone Portrait-Retina 4.png
Diff not rendered.
Binary file removed
BIN
-26.5 KB
ios/Runner/Assets.xcassets/LaunchImage.imageset/iPhone Portrait-Retina HD 4.7.png
Diff not rendered.
Binary file removed
BIN
-60.2 KB
ios/Runner/Assets.xcassets/LaunchImage.imageset/iPhone Portrait-Retina HD 5.5.png
Diff not rendered.
Binary file removed
BIN
-18 KB
ios/Runner/Assets.xcassets/LaunchImage.imageset/iPhone [email protected]
Diff not rendered.
163 changes: 163 additions & 0 deletions
163
ios/Runner/Assets.xcassets/LaunchImage.launchimage/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"extent" : "full-screen", | ||
"idiom" : "iphone", | ||
"subtype" : "2436h", | ||
"filename" : "iPhone Portrait-X.png", | ||
"minimum-system-version" : "11.0", | ||
"orientation" : "portrait", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"orientation" : "landscape", | ||
"idiom" : "iphone", | ||
"extent" : "full-screen", | ||
"minimum-system-version" : "11.0", | ||
"subtype" : "2436h", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"extent" : "full-screen", | ||
"idiom" : "iphone", | ||
"subtype" : "736h", | ||
"filename" : "iPhone Portrait-Retina HD 5.5.png", | ||
"minimum-system-version" : "8.0", | ||
"orientation" : "portrait", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"orientation" : "landscape", | ||
"idiom" : "iphone", | ||
"extent" : "full-screen", | ||
"minimum-system-version" : "8.0", | ||
"subtype" : "736h", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"extent" : "full-screen", | ||
"idiom" : "iphone", | ||
"subtype" : "667h", | ||
"filename" : "iPhone Portrait-Retina HD 4.7.png", | ||
"minimum-system-version" : "8.0", | ||
"orientation" : "portrait", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"orientation" : "portrait", | ||
"idiom" : "iphone", | ||
"filename" : "iPhone [email protected]", | ||
"extent" : "full-screen", | ||
"minimum-system-version" : "7.0", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"extent" : "full-screen", | ||
"idiom" : "iphone", | ||
"subtype" : "retina4", | ||
"filename" : "iPhone Portrait-Retina 4.png", | ||
"minimum-system-version" : "7.0", | ||
"orientation" : "portrait", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"orientation" : "portrait", | ||
"idiom" : "ipad", | ||
"extent" : "full-screen", | ||
"minimum-system-version" : "7.0", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"orientation" : "landscape", | ||
"idiom" : "ipad", | ||
"extent" : "full-screen", | ||
"minimum-system-version" : "7.0", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"orientation" : "portrait", | ||
"idiom" : "ipad", | ||
"extent" : "full-screen", | ||
"minimum-system-version" : "7.0", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"orientation" : "landscape", | ||
"idiom" : "ipad", | ||
"extent" : "full-screen", | ||
"minimum-system-version" : "7.0", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"orientation" : "portrait", | ||
"idiom" : "iphone", | ||
"extent" : "full-screen", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"orientation" : "portrait", | ||
"idiom" : "iphone", | ||
"extent" : "full-screen", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"orientation" : "portrait", | ||
"idiom" : "iphone", | ||
"extent" : "full-screen", | ||
"subtype" : "retina4", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"orientation" : "portrait", | ||
"idiom" : "ipad", | ||
"extent" : "to-status-bar", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"orientation" : "portrait", | ||
"idiom" : "ipad", | ||
"extent" : "full-screen", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"orientation" : "landscape", | ||
"idiom" : "ipad", | ||
"extent" : "to-status-bar", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"orientation" : "landscape", | ||
"idiom" : "ipad", | ||
"extent" : "full-screen", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"orientation" : "portrait", | ||
"idiom" : "ipad", | ||
"extent" : "to-status-bar", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"orientation" : "portrait", | ||
"idiom" : "ipad", | ||
"extent" : "full-screen", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"orientation" : "landscape", | ||
"idiom" : "ipad", | ||
"extent" : "to-status-bar", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"orientation" : "landscape", | ||
"idiom" : "ipad", | ||
"extent" : "full-screen", | ||
"scale" : "2x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
Binary file added
BIN
+20.9 KB
ios/Runner/Assets.xcassets/LaunchImage.launchimage/iPhone Portrait-Retina 4.png
Oops, something went wrong.
Binary file added
BIN
+28.7 KB
...unner/Assets.xcassets/LaunchImage.launchimage/iPhone Portrait-Retina HD 4.7.png
Oops, something went wrong.
Binary file added
BIN
+64.9 KB
...unner/Assets.xcassets/LaunchImage.launchimage/iPhone Portrait-Retina HD 5.5.png
Oops, something went wrong.
Binary file added
BIN
+64 KB
ios/Runner/Assets.xcassets/LaunchImage.launchimage/iPhone Portrait-X.png
Oops, something went wrong.
Binary file added
BIN
+18.5 KB
ios/Runner/Assets.xcassets/LaunchImage.launchimage/iPhone [email protected]
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import "package:rxdart/rxdart.dart"; | ||
import "dart:async"; | ||
|
||
final _usernameTransformer = new StreamTransformer<String, String>.fromHandlers( | ||
handleData: (val, EventSink evt) { | ||
if (val == '') { | ||
evt.addError('用户名不能为空'); | ||
} else { | ||
evt.add(val); | ||
} | ||
} | ||
) | ||
; | ||
final _passwordTransformer = new StreamTransformer<String, String>.fromHandlers( | ||
handleData: (val, EventSink evt) { | ||
if (val == '') { | ||
evt.addError('密码不能为空'); | ||
} else { | ||
evt.add(val); | ||
} | ||
} | ||
); | ||
|
||
class LoginBloc{ | ||
BehaviorSubject<String> _usernameSubject = BehaviorSubject<String>(); | ||
Stream<String> get username => _usernameSubject.stream.transform(_usernameTransformer).distinct(); | ||
|
||
BehaviorSubject<String> _passwordSubject = BehaviorSubject<String>(); | ||
Stream<String> get password => _passwordSubject.stream.transform(_passwordTransformer).distinct(); | ||
|
||
void Function(String) get changeUsername => _usernameSubject.sink.add; | ||
void Function(String) get changePassword => _passwordSubject.sink.add; | ||
|
||
LoginBloc() { | ||
|
||
} | ||
|
||
|
||
void dispose() { | ||
_usernameSubject.close(); | ||
_passwordSubject.close(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.