toolheim/mobile-app/lib/main.dart

30 lines
812 B
Dart

import 'package:flutter/material.dart';
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';
void main() {
runApp(Toolheim());
}
class Toolheim extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ChangeNotifierProvider(
builder: (context) => GitHubAdapter(),
child: MaterialApp(
title: 'Toolheim',
theme: ThemeData(
primarySwatch: Colors.brown,
accentColor: Colors.grey,
),
initialRoute: '/',
routes: {
'/': (context) => WarbandRoasterScreen(),
'/settings': (context) => SettingsScreen()
},
),
);
}
}