simple_store 0.1.0 simple_store: ^0.1.0 copied to clipboard
A flutter Single Data Flow framework that manages app state and navigation.
import 'package:flutter/material.dart';
import 'package:simple_store/simple_store.dart';
import 'module/home/home.dart';
void main() {
runApp(SimpleStoreApp(
// MyApp is not required here, it can just be HomeModule
// MyApp is here to exemplify non-module Widget.
home: MyApp(),
builder: (delegate, parser) => MaterialApp.router(
routeInformationParser: parser, routerDelegate: delegate
),
));
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(children: [
Expanded(child: HomeModule()),
Center(child: Text('hello world', style: TextStyle(
decoration: TextDecoration.none,
fontSize: 14,
color: Colors.white,
fontWeight: FontWeight.normal
)))
]);
}
}