opt: non null (#1091)

* opt: type

* opt: type 2

* opt: type 3
This commit is contained in:
My-Responsitories
2025-08-23 18:25:41 +08:00
committed by GitHub
parent 6009668427
commit 3c34e43827
75 changed files with 400 additions and 362 deletions

View File

@@ -167,7 +167,7 @@ class _ColorSelectPageState extends State<ColorSelectPage> {
value: 0,
title: const Text('动态取色'),
groupValue: ctr.type.value,
onChanged: (dynamic val) {
onChanged: (val) {
ctr
..type.value = 0
..setting.put(SettingBoxKey.dynamicColor, true);
@@ -180,7 +180,7 @@ class _ColorSelectPageState extends State<ColorSelectPage> {
value: 1,
title: const Text('指定颜色'),
groupValue: ctr.type.value,
onChanged: (dynamic val) {
onChanged: (val) {
ctr
..type.value = 1
..setting.put(SettingBoxKey.dynamicColor, false);

View File

@@ -177,7 +177,7 @@ class _CdnSelectDialogState extends State<CdnSelectDialog> {
_cdnResList[index].value = '${speed}MB/s';
}
void _handleSpeedTestError(dynamic error, int index) {
void _handleSpeedTestError(Object error, int index) {
final item = _cdnResList[index];
if (item.value != null) return;