@@ -42,7 +42,7 @@ class GeneralSettingsPage extends StatelessWidget {
4242
4343 return Column (
4444 children: [
45- Text ('System' , style: Theme .of (context).textTheme.titleLarge),
45+ Text (localizations.system , style: Theme .of (context).textTheme.titleLarge),
4646 const Divider (),
4747 Expanded (
4848 child: SingleChildScrollView (
@@ -51,17 +51,17 @@ class GeneralSettingsPage extends StatelessWidget {
5151 FocusableSettingsTile (
5252 autofocus: true ,
5353 leading: const Icon (Icons .brightness_6),
54- title: Text ('Brightness Scheduler' , style: Theme .of (context).textTheme.bodyMedium),
54+ title: Text (localizations.brightnessScheduler , style: Theme .of (context).textTheme.bodyMedium),
5555 onPressed: () => Navigator .of (context).pushNamed (BrightnessSettingsPage .routeName),
5656 ),
5757 FocusableSettingsTile (
5858 leading: const Icon (Icons .screenshot_monitor),
59- title: Text ('Screensaver Settings' , style: Theme .of (context).textTheme.bodyMedium),
59+ title: Text (localizations.screensaverSettings , style: Theme .of (context).textTheme.bodyMedium),
6060 onPressed: () => _openScreensaverSettings (),
6161 ),
6262 FocusableSettingsTile (
6363 leading: const Icon (Icons .watch_later_outlined),
64- title: Text ('Screensaver Clock Style' , style: Theme .of (context).textTheme.bodyMedium),
64+ title: Text (localizations.screensaverClockStyle , style: Theme .of (context).textTheme.bodyMedium),
6565 onPressed: () => Navigator .of (context).pushNamed (ScreensaverClockStylePage .routeName),
6666 ),
6767 FocusableSettingsTile (
@@ -76,7 +76,7 @@ class GeneralSettingsPage extends StatelessWidget {
7676 ),
7777 FocusableSettingsTile (
7878 leading: const Icon (Icons .data_usage),
79- title: Text ('Data Usage Period' , style: Theme .of (context).textTheme.bodyMedium),
79+ title: Text (localizations.dataUsagePeriod , style: Theme .of (context).textTheme.bodyMedium),
8080 onPressed: () => Navigator .of (context).pushNamed (DataUsagePeriodPage .routeName),
8181 ),
8282 FocusableSettingsTile (
@@ -90,9 +90,9 @@ class GeneralSettingsPage extends StatelessWidget {
9090 children: [
9191 FocusableSettingsTile (
9292 leading: const Icon (Icons .notifications_active_outlined),
93- title: Text ('Notification Access' , style: Theme .of (context).textTheme.bodyMedium),
93+ title: Text (localizations.notificationAccess , style: Theme .of (context).textTheme.bodyMedium),
9494 trailing: Text (
95- service.hasPermission ? 'Granted' : 'Permission Required' ,
95+ service.hasPermission ? localizations.granted : localizations.permissionRequired ,
9696 style: Theme .of (context).textTheme.bodySmall? .copyWith (
9797 color: service.hasPermission ? Colors .green : Colors .orange,
9898 ),
@@ -111,11 +111,11 @@ class GeneralSettingsPage extends StatelessWidget {
111111 if (service.hasPermission)
112112 FocusableSettingsTile (
113113 leading: const Icon (Icons .picture_in_picture_alt_outlined),
114- title: Text ('System-wide Popup Alert' , style: Theme .of (context).textTheme.bodyMedium),
114+ title: Text (localizations.systemWidePopupAlert , style: Theme .of (context).textTheme.bodyMedium),
115115 trailing: Text (
116116 ! service.hasOverlayPermission
117- ? 'Overlay Permission Required'
118- : (service.systemPopupEnabled ? 'Enabled' : 'Disabled' ),
117+ ? localizations.overlayPermissionRequired
118+ : (service.systemPopupEnabled ? localizations.enabled : localizations.disabled ),
119119 style: Theme .of (context).textTheme.bodySmall? .copyWith (
120120 color: ! service.hasOverlayPermission
121121 ? Colors .orange
0 commit comments