add splash to config

master
fuwa 5 years ago
parent 68a4dc5052
commit 026262ed32

@ -25,4 +25,5 @@ final config = CryptoConfig
( (
'wownerod', 'wownerod',
'wownerod', 'wownerod',
'Follow the white rabbit.',
); );

@ -22,9 +22,11 @@ along with CyberWOW. If not, see <https://www.gnu.org/licenses/>.
class CryptoConfig { class CryptoConfig {
final String outputBin; final String outputBin;
final String appPath; final String appPath;
final String splash;
CryptoConfig CryptoConfig
( (
this.outputBin, this.outputBin,
this.appPath, this.appPath,
this.splash,
); );
} }

@ -77,7 +77,7 @@ class _MyHomePageState extends State<MyHomePage>
} }
Future<void> buildStateMachine(BlankState _blankState) async { Future<void> buildStateMachine(BlankState _blankState) async {
const loadingText = "Follow the white rabbit."; final loadingText = config.splash;
LoadingState _loadingState = await _blankState.next(loadingText); LoadingState _loadingState = await _blankState.next(loadingText);
final binName = config.outputBin; final binName = config.outputBin;

Loading…
Cancel
Save