46 lines
1.6 KiB
Dart
46 lines
1.6 KiB
Dart
import 'dart:ui';
|
|
|
|
import 'package:aves/main_play.dart' as app;
|
|
import 'package:aves/model/settings/defaults.dart';
|
|
import 'package:aves/model/settings/settings.dart';
|
|
import 'package:aves_map/src/style.dart';
|
|
import 'package:aves_model/aves_model.dart';
|
|
import 'package:flutter_driver/driver_extension.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
void main() => configureAndLaunch();
|
|
|
|
Future<void> configureAndLaunch() async {
|
|
enableFlutterDriverExtension();
|
|
await settings.init(monitorPlatformSettings: false);
|
|
settings
|
|
// app
|
|
..hasAcceptedTerms = false
|
|
..isInstalledAppAccessAllowed = true
|
|
..isErrorReportingAllowed = false
|
|
..locale = const Locale('en')
|
|
// display
|
|
..themeBrightness = AvesThemeBrightness.dark
|
|
..themeColorMode = AvesThemeColorMode.polychrome
|
|
..enableDynamicColor = false
|
|
..enableBlurEffect = true
|
|
// navigation
|
|
..keepScreenOn = KeepScreenOn.always
|
|
..setHome(HomePageSetting.collection)
|
|
..enableBottomNavigationBar = true
|
|
// collection
|
|
..collectionSectionFactor = EntrySectionFactor.album
|
|
..collectionSortFactor = EntrySortFactor.date
|
|
..collectionBrowsingQuickActions = SettingsDefaults.collectionBrowsingQuickActions
|
|
// viewer
|
|
..showOverlayOnOpening = true
|
|
..showOverlayMinimap = true
|
|
..overlayHistogramStyle = OverlayHistogramStyle.rgb
|
|
..showOverlayInfo = true
|
|
..showOverlayShootingDetails = true
|
|
..showOverlayThumbnailPreview = true
|
|
..imageBackground = EntryBackground.checkered
|
|
// map
|
|
..mapStyle = EntryMapStyle.googleNormal;
|
|
app.main();
|
|
}
|