From 026262ed3215e667c4feb76bf2c49b23adb6e860 Mon Sep 17 00:00:00 2001 From: fuwa Date: Sat, 22 Jun 2019 11:36:19 +0800 Subject: [PATCH] add splash to config --- cyberwow/lib/config/cyberwow.dart | 1 + cyberwow/lib/config/prototype.dart | 2 ++ cyberwow/lib/main.dart | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cyberwow/lib/config/cyberwow.dart b/cyberwow/lib/config/cyberwow.dart index 29acf12..763eb35 100644 --- a/cyberwow/lib/config/cyberwow.dart +++ b/cyberwow/lib/config/cyberwow.dart @@ -25,4 +25,5 @@ final config = CryptoConfig ( 'wownerod', 'wownerod', + 'Follow the white rabbit.', ); diff --git a/cyberwow/lib/config/prototype.dart b/cyberwow/lib/config/prototype.dart index 087e77a..1a527a8 100644 --- a/cyberwow/lib/config/prototype.dart +++ b/cyberwow/lib/config/prototype.dart @@ -22,9 +22,11 @@ along with CyberWOW. If not, see . class CryptoConfig { final String outputBin; final String appPath; + final String splash; CryptoConfig ( this.outputBin, this.appPath, + this.splash, ); } diff --git a/cyberwow/lib/main.dart b/cyberwow/lib/main.dart index b1ac0e5..659329b 100644 --- a/cyberwow/lib/main.dart +++ b/cyberwow/lib/main.dart @@ -77,7 +77,7 @@ class _MyHomePageState extends State } Future buildStateMachine(BlankState _blankState) async { - const loadingText = "Follow the white rabbit."; + final loadingText = config.splash; LoadingState _loadingState = await _blankState.next(loadingText); final binName = config.outputBin;