From 20cf418d54f041eb780c7bbe61cefd4a047fafbb Mon Sep 17 00:00:00 2001 From: niuhuan Date: Mon, 8 May 2023 18:57:18 +0800 Subject: [PATCH] :construction_worker: Flutter 2/3 compatible --- .github/workflows/Release.yml | 1 + lib/screens/SettingsScreen.dart | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 8d7e9b3..e06048d 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -240,6 +240,7 @@ jobs: sed -i "s/file_picker: ^5.2.1/file_picker: 4.6.1/g" pubspec.yaml sed -i "s/multi_select_flutter: ^4.0.0/multi_select_flutter: 4.1.2/g" pubspec.yaml sed -i "s/modal_bottom_sheet: ^3.0.0-pre/modal_bottom_sheet: 2.0.1/g" pubspec.yaml + sed -i "s/Icons.energy_savings_leaf/Icons.ad_units/g" lib/screens/SettingsScreen.dart flutter pub get - name: Upgrade deps version (flutter2 mac) diff --git a/lib/screens/SettingsScreen.dart b/lib/screens/SettingsScreen.dart index 94a5bb2..f0f91d7 100644 --- a/lib/screens/SettingsScreen.dart +++ b/lib/screens/SettingsScreen.dart @@ -75,12 +75,12 @@ class _SettingsScreenState extends State { title: const Text('设置'), ), body: SingleChildScrollView( - padding: EdgeInsets.all(16), + padding: const EdgeInsets.all(16), child: Column( children: [ ExpansionTile( - leading: Icon(Icons.energy_savings_leaf), - title: Text('界面'), + leading: const Icon(Icons.energy_savings_leaf), + title: const Text('界面'), children: [ const Divider(), ...themeWidgets(context, setState),