123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /*
- * fluro
- * Created by Yakka
- * https://theyakka.com
- *
- * Copyright (c) 2019 Yakka, LLC. All rights reserved.
- * See LICENSE for distribution and usage details.
- */
- import 'package:fluro/fluro.dart';
- import 'package:flutter/material.dart';
- import '../../config/application.dart';
- import '../../config/routes.dart';
- class AppComponent extends StatefulWidget {
- @override
- State createState() {
- return AppComponentState();
- }
- }
- class AppComponentState extends State<AppComponent> {
- AppComponentState() {
- final router = Router();
- Routes.configureRoutes(router);
- Application.router = router;
- }
- @override
- Widget build(BuildContext context) {
- final app = MaterialApp(
- title: 'Fluro',
- debugShowCheckedModeBanner: false,
- theme: ThemeData(
- primarySwatch: Colors.blue,
- ),
- onGenerateRoute: Application.router.generator,
- );
- // print("initial route = ${app.initialRoute}");
- return app;
- }
- }
|