add splash to config

This commit is contained in:
fuwa
2019-06-22 11:36:19 +08:00
parent 68a4dc5052
commit 026262ed32
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -25,4 +25,5 @@ final config = CryptoConfig
(
'wownerod',
'wownerod',
'Follow the white rabbit.',
);
+2
View File
@@ -22,9 +22,11 @@ along with CyberWOW. If not, see <https://www.gnu.org/licenses/>.
class CryptoConfig {
final String outputBin;
final String appPath;
final String splash;
CryptoConfig
(
this.outputBin,
this.appPath,
this.splash,
);
}
+1 -1
View File
@@ -77,7 +77,7 @@ class _MyHomePageState extends State<MyHomePage>
}
Future<void> buildStateMachine(BlankState _blankState) async {
const loadingText = "Follow the white rabbit.";
final loadingText = config.splash;
LoadingState _loadingState = await _blankState.next(loadingText);
final binName = config.outputBin;