feat: lots of fixes
This commit is contained in:
@ -2,9 +2,11 @@ import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:hydrated_bloc/hydrated_bloc.dart';
|
||||
import 'package:ot_viewer_app/global_location_store.dart';
|
||||
import 'package:ot_viewer_app/settings_page.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
import 'map_page.dart';
|
||||
import 'package:get_it/get_it.dart';
|
||||
import 'owntracks_api.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
@ -16,6 +18,8 @@ Future<void> main() async {
|
||||
: await getApplicationDocumentsDirectory(),
|
||||
);
|
||||
|
||||
GetIt.I
|
||||
.registerSingleton<GlobalLocationStoreCubit>(GlobalLocationStoreCubit());
|
||||
|
||||
runApp(MyApp());
|
||||
}
|
||||
@ -28,7 +32,7 @@ class MyApp extends StatelessWidget {
|
||||
theme: ThemeData.dark(),
|
||||
home: Scaffold(
|
||||
appBar: AppBar(title: const Text('OwnTrakcs Data Viewer')),
|
||||
body: MainPage(),
|
||||
body: const MainPage(),
|
||||
),
|
||||
);
|
||||
}
|
||||
@ -45,7 +49,7 @@ class _MainPageState extends State<MainPage> {
|
||||
int _currentIndex = 0;
|
||||
final List<Widget> _pages = [
|
||||
const MapPage(),
|
||||
SettingsPage(), // Assume this is your settings page widget
|
||||
const SettingsPage(), // Assume this is your settings page widget
|
||||
];
|
||||
|
||||
void _onItemTapped(int index) {
|
||||
|
||||
Reference in New Issue
Block a user