toolheim/mobile-app/lib/main.dart

31 lines
812 B
Dart
Raw Normal View History

2019-06-24 00:53:43 +02:00
import 'package:flutter/material.dart';
2019-07-10 14:16:13 +02:00
import 'package:provider/provider.dart';
import 'package:toolheim/data/github_adapter.dart';
import 'package:toolheim/screens/settings_screen.dart';
import 'package:toolheim/screens/warband_roaster_screen.dart';
2019-06-24 00:53:43 +02:00
2019-07-10 14:16:13 +02:00
void main() {
runApp(Toolheim());
}
2019-06-24 00:53:43 +02:00
class Toolheim extends StatelessWidget {
@override
Widget build(BuildContext context) {
2019-07-10 14:16:13 +02:00
return ChangeNotifierProvider(
builder: (context) => GitHubAdapter(),
child: MaterialApp(
title: 'Toolheim',
theme: ThemeData(
primarySwatch: Colors.brown,
accentColor: Colors.grey,
),
2019-07-10 14:16:13 +02:00
initialRoute: '/',
routes: {
'/': (context) => WarbandRoasterScreen(),
'/settings': (context) => SettingsScreen()
},
2019-06-27 00:16:58 +02:00
),
2019-07-10 14:16:13 +02:00
);
2019-06-24 00:53:43 +02:00
}
}