mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -167,7 +167,7 @@ class _ColorSelectPageState extends State<ColorSelectPage> {
|
||||
value: 0,
|
||||
title: const Text('动态取色'),
|
||||
groupValue: ctr.type.value,
|
||||
onChanged: (val) {
|
||||
onChanged: (dynamic 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: (val) {
|
||||
onChanged: (dynamic val) {
|
||||
ctr
|
||||
..type.value = 1
|
||||
..setting.put(SettingBoxKey.dynamicColor, false);
|
||||
|
||||
@@ -177,7 +177,7 @@ class _CdnSelectDialogState extends State<CdnSelectDialog> {
|
||||
_cdnResList[index].value = '${speed}MB/s';
|
||||
}
|
||||
|
||||
void _handleSpeedTestError(Object error, int index) {
|
||||
void _handleSpeedTestError(dynamic error, int index) {
|
||||
final item = _cdnResList[index];
|
||||
if (item.value != null) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user