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

@@ -22,8 +22,6 @@ enum PkgManager {
return 'opkg list-upgradable';
case PkgManager.apk:
return 'apk list --upgradable';
default:
return null;
}
}
@@ -56,8 +54,6 @@ enum PkgManager {
return 'opkg upgrade $args';
case PkgManager.apk:
return 'apk upgrade';
default:
return null;
}
}

View File

@@ -104,7 +104,9 @@ class DiskIO extends TimeSeq<List<DiskIOPiece>> {
!item.dev.startsWith('vd') &&
!item.dev.startsWith('hd') &&
!item.dev.startsWith('mmcblk') &&
!item.dev.startsWith('sr')) continue;
!item.dev.startsWith('sr')) {
continue;
}
final (read_, write_) = _getSpeed(item.dev);
read += read_ ?? 0;
write += write_ ?? 0;

View File

@@ -60,8 +60,6 @@ Future<void> isolateMessageHandler(
case SftpReqType.upload:
await _upload(data, mainSendPort, sendError);
break;
default:
sendError(Exception('unknown type'));
}
break;
default:

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)