flutter_control 0.8.99 flutter_control: ^0.8.99 copied to clipboard
Flutter Control is library to simply maintain App and State management. Provides some basic Widgets and Controllers to start with.
import 'package:flutter/material.dart';
import 'package:flutter_control/core.dart';
import 'cards_controller.dart';
import 'cards_page.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return BaseApp(
title: 'Flutter Control Example',
locales: {
'en': 'assets/localization/en.json',
},
entries: {
'cards': CardsController(),
},
initializers: {
DetailController: () => DetailController(),
},
root: (context) => CardsPage(),
);
}
}