yubioath-flutter/lib/app/app.dart

30 lines
788 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import '../theme.dart';
2022-06-10 14:49:02 +03:00
import 'logging.dart';
import 'shortcuts.dart';
2022-04-05 12:28:51 +03:00
import 'state.dart';
class YubicoAuthenticatorApp extends ConsumerWidget {
final Widget page;
2022-05-12 10:56:55 +03:00
const YubicoAuthenticatorApp({required this.page, super.key});
@override
Widget build(BuildContext context, WidgetRef ref) {
return LogWarningOverlay(
2022-06-10 14:49:02 +03:00
child: Shortcuts(
shortcuts: globalShortcuts,
child: MaterialApp(
title: 'Yubico Authenticator',
theme: AppTheme.lightTheme,
darkTheme: AppTheme.darkTheme,
themeMode: ref.watch(themeModeProvider),
home: page,
debugShowCheckedModeBanner: false,
),
),
);
}
}