mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-10-14 03:30:56 +02:00
first version worth putting in git - compiles and runs - missing a lot still.
This commit is contained in:
1 parent
bd0898c5e4
commit
eee92f4f21
71 files changed
+2728
-2
No files matched your search
@@ -0,0 +1,38 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import 'app_state.dart';
|
||||
import 'screens/home_screen.dart';
|
||||
import 'screens/add_camera_screen.dart';
|
||||
import 'screens/settings_screen.dart';
|
||||
|
||||
void main() {
|
||||
runApp(
|
||||
ChangeNotifierProvider(
|
||||
create: (_) => AppState(),
|
||||
child: const FlockMapApp(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
class FlockMapApp extends StatelessWidget {
|
||||
const FlockMapApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'Flock Map',
|
||||
theme: ThemeData(
|
||||
colorScheme: ColorScheme.fromSeed(seedColor: Colors.green),
|
||||
useMaterial3: true,
|
||||
),
|
||||
routes: {
|
||||
'/': (context) => const HomeScreen(),
|
||||
'/add': (context) => const AddCameraScreen(),
|
||||
'/settings': (context) => const SettingsScreen(),
|
||||
},
|
||||
initialRoute: '/',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user