simple_store 0.1.0 copy "simple_store: ^0.1.0" to clipboard
simple_store: ^0.1.0 copied to clipboard

A flutter Single Data Flow framework that manages app state and navigation.

example/lib/main.dart

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
            )))
        ]);
    }
}
0
likes
35
pub points
0%
popularity

Publisher

verified publisherguyong.in

A flutter Single Data Flow framework that manages app state and navigation.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, simple_store_base

More

Packages that depend on simple_store