Skip to content

Instantly share code, notes, and snippets.

@diefferson
Created June 8, 2021 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diefferson/4b876f843480d9c4d3ac9e90386c0a06 to your computer and use it in GitHub Desktop.
Save diefferson/4b876f843480d9c4d3ac9e90386c0a06 to your computer and use it in GitHub Desktop.
Stark init
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