meedu 0.1.0 meedu: ^0.1.0 copied to clipboard
A simple State Managment, Dependency Injection, Reactive programming and Navigation for Flutter apps.
import 'package:flutter/material.dart';
import 'package:meedu/router.dart' show MNavigator;
import 'package:meedu/get.dart';
import 'modules/home/home_page.dart';
import 'modules/numbers/numbers_page.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
navigatorKey: MNavigator.instance.navigatorKey,
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: HomePage(),
routes: {
NumbersPage.routeName: (_) => NumbersPage(),
},
);
}
}