Created
June 8, 2021 00:25
-
-
Save diefferson/4b876f843480d9c4d3ac9e90386c0a06 to your computer and use it in GitHub Desktop.
Stark init
This file contains hidden or 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
import 'package:flutter/material.dart'; | |
import 'package:stark/stark.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
void initStark() { | |
Stark.init( | |
[ | |
moduleA, | |
moduleB, | |
moduleC | |
] | |
); | |
} | |
@override | |
Widget build(BuildContext context) { | |
initStark(); | |
return MaterialApp(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment