chore: migrate to flutter 3.27

This commit is contained in:
lollipopkit
2024-12-14 14:45:04 +08:00
parent 41886be649
commit 867fcbfc0d
8 changed files with 30 additions and 38 deletions

View File

@@ -515,10 +515,6 @@ class _ServerPageState extends State<ServerPage>
const Icon(MingCute.unlink_2_line, size: 17, color: Colors.grey),
() => ServerProvider.closeServer(id: s.spi.id),
),
_ when Stores.setting.serverTabUseOldUI.fetch() => (
ServerFuncBtnsTopRight(spi: s.spi),
null,
),
};
// Or the loading icon will be rescaled.

View File

@@ -424,7 +424,7 @@ final class _AppSettingsPageState extends State<AppSettingsPage> {
return;
}
UIs.colorSeed = color;
_setting.colorSeed.put(color.value);
_setting.colorSeed.put(color.value255);
context.pop();
Future.delayed(Durations.medium1, RNodes.app.notify);
}

View File

@@ -158,7 +158,7 @@ final class _SystemdPageState extends State<SystemdPage> {
Widget _buildTag(String tag, [Color? color, bool noPad = false]) {
return Container(
decoration: BoxDecoration(
color: color?.withOpacity(0.7) ?? UIs.halfAlpha,
color: color?.withValues(alpha: 0.7) ?? UIs.halfAlpha,
borderRadius: BorderRadius.circular(5),
),
child: Text(tag, style: UIs.text11)