mobx_provider 0.0.4 mobx_provider: ^0.0.4 copied to clipboard
package for binding the UI with your stores (viewmodels) easily , the package is inspired by filled stacks archticture pattern
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'counter/counter_store.dart';
import 'counter/counter_widget.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MultiProvider(
providers: [
Provider(
create: (_) => CounterStore(),
)
],
child: MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: CounterWidget(),
),
);
}
}