Fix reported issues
This commit is contained in:
parent
731489c111
commit
8b1cc8482b
1 changed files with 5 additions and 6 deletions
|
|
@ -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),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue