opt. for performance

This commit is contained in:
lollipopkit
2023-06-05 17:51:52 +08:00
parent 378baf589a
commit 7b1c1b9a5a
15 changed files with 68 additions and 126 deletions

View File

@@ -142,7 +142,6 @@ class _SettingPageState extends State<SettingPage> {
Widget _buildServer() {
return Column(
children: [
_buildDistLogoSwitch(),
_buildUpdateInterval(),
_buildMaxRetry(),
_buildDiskIgnorePath(),
@@ -168,19 +167,6 @@ class _SettingPageState extends State<SettingPage> {
);
}
Widget _buildDistLogoSwitch() {
return ListTile(
title: Text(
_s.showDistLogo,
),
subtitle: Text(
_s.onServerDetailPage,
style: grey,
),
trailing: buildSwitch(context, _setting.showDistLogo),
);
}
Widget _buildCheckUpdate() {
return Consumer<AppProvider>(
builder: (_, app, __) {