Initial commit
This commit is contained in:
commit
c4438365ab
78 changed files with 1900 additions and 0 deletions
26
lib/firesApp.dart
Normal file
26
lib/firesApp.dart
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:comunes_flutter/comunes_flutter.dart';
|
||||
import 'homePage.dart';
|
||||
import 'theme.dart';
|
||||
import 'introPage.dart';
|
||||
import 'sandbox.dart';
|
||||
import 'activeFires.dart';
|
||||
|
||||
class FiresApp extends StatelessWidget {
|
||||
final Map routes = <String, WidgetBuilder>{
|
||||
Sandbox.routeName: (BuildContext context) => new Sandbox(),
|
||||
ActiveFiresMap.routeName: (BuildContext context) => new ActiveFiresMap(),
|
||||
IntroPage.routeName: (BuildContext context) => new IntroPage(),
|
||||
};
|
||||
final WidgetBuilder introWidget = (context) => new IntroPage();
|
||||
final WidgetBuilder continueWidget = (context) => new HomePage();
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return new MaterialApp(
|
||||
home: new MaterialAppWithIntroHome(introWidget, continueWidget),
|
||||
title: 'All Against The Fire!',
|
||||
theme: firesTheme,
|
||||
routes: routes);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue