clean up unused status

pull/4/head
fuwa 5 years ago
parent b2d84072c1
commit a1f2d56781

@ -117,7 +117,7 @@ class _CyberWOW_PageState extends State<CyberWOW_Page> with WidgetsBindingObserv
final bundle = DefaultAssetBundle.of(context); final bundle = DefaultAssetBundle.of(context);
final loading = process.deployBinary(bundle, resourcePath, binName); final loading = process.deployBinary(bundle, resourcePath, binName);
state.SyncingState _syncingState = await _loadingState.next(loading, ''); state.SyncingState _syncingState = await _loadingState.next(loading);
final syncing = process final syncing = process
.runBinary(binName, input: inputStreamController.stream, shouldExit: _isExiting) .runBinary(binName, input: inputStreamController.stream, shouldExit: _isExiting)
@ -125,8 +125,8 @@ class _CyberWOW_PageState extends State<CyberWOW_Page> with WidgetsBindingObserv
await _syncingState.next(inputStreamController.sink, syncing); await _syncingState.next(inputStreamController.sink, syncing);
var exited = false; bool exited = false;
var validState = true; bool validState = true;
while (validState && !exited) { while (validState && !exited) {
switch (_state.runtimeType) { switch (_state.runtimeType) {

@ -38,15 +38,15 @@ class LoadingState extends AppState {
} }
Future<SyncingState> next(Stream<String> loadingProgress, String status) async { Future<SyncingState> next(final Stream<String> loadingProgress) async {
Future<void> showBanner() async { Future<void> showBanner() async {
var chars = []; List<String> chars = [];
banner.runes.forEach((int rune) { banner.runes.forEach((int rune) {
final c = String.fromCharCode(rune); final c = String.fromCharCode(rune);
chars.add(c); chars.add(c);
}); });
for (String char in chars) { for (final String char in chars) {
append(char); append(char);
await Future.delayed(Duration(milliseconds: config.c.splashDelay), () => "1"); await Future.delayed(Duration(milliseconds: config.c.splashDelay), () => "1");
} }