Fix reported issues

This commit is contained in:
Anton Tananaev 2025-05-13 07:40:09 -07:00
parent 731489c111
commit 8b1cc8482b

View file

@ -51,8 +51,7 @@ class _MainScreenState extends State<MainScreen> {
ListTile( ListTile(
contentPadding: EdgeInsets.zero, contentPadding: EdgeInsets.zero,
title: Text(AppLocalizations.of(context)!.idLabel), title: Text(AppLocalizations.of(context)!.idLabel),
trailing: Text(Preferences.instance.getString(Preferences.id) ?? ''), subtitle: Text(Preferences.instance.getString(Preferences.id) ?? ''),
leadingAndTrailingTextStyle: Theme.of(context).textTheme.bodyLarge,
), ),
SwitchListTile( SwitchListTile(
contentPadding: EdgeInsets.zero, contentPadding: EdgeInsets.zero,
@ -110,16 +109,16 @@ class _MainScreenState extends State<MainScreen> {
ListTile( ListTile(
contentPadding: EdgeInsets.zero, contentPadding: EdgeInsets.zero,
title: Text(AppLocalizations.of(context)!.urlLabel), title: Text(AppLocalizations.of(context)!.urlLabel),
trailing: Text(Preferences.instance.getString(Preferences.url) ?? ''), subtitle: Text(Preferences.instance.getString(Preferences.url) ?? ''),
leadingAndTrailingTextStyle: Theme.of(context).textTheme.bodyLarge,
), ),
const SizedBox(height: 8), const SizedBox(height: 8),
OverflowBar( OverflowBar(
spacing: 8, spacing: 8,
children: [ children: [
FilledButton.tonal( FilledButton.tonal(
onPressed: () { onPressed: () async {
Navigator.push(context, MaterialPageRoute(builder: (_) => const SettingsScreen())); await Navigator.push(context, MaterialPageRoute(builder: (_) => const SettingsScreen()));
setState(() {});
}, },
child: Text(AppLocalizations.of(context)!.settingsButton), child: Text(AppLocalizations.of(context)!.settingsButton),
), ),