fix theme / add history
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:intl/date_symbol_data_local.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:kooltab2/viewmodels/history_view_model.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import 'app/app.dart';
|
||||
@@ -13,6 +16,11 @@ import 'viewmodels/product_list_view_model.dart';
|
||||
Future<void> main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
|
||||
await initializeDateFormatting('nl_BE', null);
|
||||
Intl.defaultLocale = 'nl_BE';
|
||||
|
||||
|
||||
await SystemChrome.setPreferredOrientations([
|
||||
DeviceOrientation.landscapeLeft,
|
||||
DeviceOrientation.landscapeRight,
|
||||
@@ -45,6 +53,9 @@ Future<void> main() async {
|
||||
barTabService: context.read<BarTabService>(),
|
||||
),
|
||||
),
|
||||
ChangeNotifierProvider<HistoryViewModel>(
|
||||
create: (context) => HistoryViewModel(barTabService: context.read<BarTabService>()),
|
||||
)
|
||||
],
|
||||
child: const AppBootstrap(
|
||||
child: KoolTabApp(),
|
||||
|
||||
Reference in New Issue
Block a user