mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Update code
This commit is contained in:
@@ -72,6 +72,10 @@ class _SetServerPageState extends State<SetServerPage> with ThemeModeWidget {
|
||||
});
|
||||
}
|
||||
final bool hasBaseUrl = prefs.getString('baseUrl') != null;
|
||||
var actions = [
|
||||
buildThemeModeIcon(context),
|
||||
];
|
||||
if (hasBaseUrl) actions.add(buildMoreVertSettingsButon(context));
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(AppLocalizations.of(context)!.setServerUrl),
|
||||
@@ -83,9 +87,7 @@ class _SetServerPageState extends State<SetServerPage> with ThemeModeWidget {
|
||||
},
|
||||
)
|
||||
: null,
|
||||
actions: [
|
||||
buildThemeModeIcon(context),
|
||||
],
|
||||
actions: actions,
|
||||
),
|
||||
body: Container(
|
||||
padding: MediaQuery.of(context).size.width > 810
|
||||
|
||||
Reference in New Issue
Block a user