mirror of
https://github.com/krawieck/lemmur/
synced 2024-12-26 08:03:06 +01:00
9f9cc52cf5
* Add logging package * Refresh linux files * Android flavor setup * Setup ios flavors * Setup release CI * Refactor CI * Remove debug prints * Create prod signingConfig only if exists * Store recent logs * Remove flavoring on desktop * Fix android signing * Fix release paths (except windows) * Quote secret var * debug * Fix env vars * Add log console * Add logs section in bug issue template * Add time to logs * Add changelog entry * Rename log console * Remove key * Change way of routing * Add title
31 lines
823 B
Dart
31 lines
823 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_hooks/flutter_hooks.dart';
|
|
import 'package:keyboard_dismisser/keyboard_dismisser.dart';
|
|
|
|
import 'hooks/stores.dart';
|
|
import 'l10n/l10n.dart';
|
|
import 'pages/home_page.dart';
|
|
import 'theme.dart';
|
|
|
|
class MyApp extends HookWidget {
|
|
const MyApp();
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final configStore = useConfigStore();
|
|
|
|
return KeyboardDismisser(
|
|
child: MaterialApp(
|
|
title: 'lemmur',
|
|
supportedLocales: L10n.supportedLocales,
|
|
localizationsDelegates: L10n.localizationsDelegates,
|
|
themeMode: configStore.theme,
|
|
darkTheme: configStore.amoledDarkMode ? amoledTheme : darkTheme,
|
|
locale: configStore.locale,
|
|
theme: lightTheme,
|
|
home: const HomePage(),
|
|
),
|
|
);
|
|
}
|
|
}
|