mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-01-31 13:25:10 +01:00
chore: migrate to flutter 3.27
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -60,8 +60,6 @@ Future<void> isolateMessageHandler(
|
||||
case SftpReqType.upload:
|
||||
await _upload(data, mainSendPort, sendError);
|
||||
break;
|
||||
default:
|
||||
sendError(Exception('unknown type'));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user