👷 Flutter 2/3 compatible

This commit is contained in:
niuhuan 2023-05-08 18:57:18 +08:00
parent e57be1a892
commit 20cf418d54
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -75,12 +75,12 @@ class _SettingsScreenState extends State<SettingsScreen> {
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),