|
@@ -3,6 +3,7 @@
|
|
|
import 'dart:async';
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
+import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
|
|
|
|
|
/// A widget which handles app lifecycle events for showing and hiding a lock screen.
|
|
|
/// This should wrap around a `MyApp` widget (or equivalent).
|
|
@@ -107,6 +108,8 @@ class _AppLockState extends State<AppLock> with WidgetsBindingObserver {
|
|
|
themeMode: ThemeMode.system,
|
|
|
theme: widget.lightTheme,
|
|
|
darkTheme: widget.darkTheme,
|
|
|
+ supportedLocales: AppLocalizations.supportedLocales,
|
|
|
+ localizationsDelegates: AppLocalizations.localizationsDelegates,
|
|
|
onGenerateRoute: (settings) {
|
|
|
switch (settings.name) {
|
|
|
case '/lock-screen':
|