temporarily ignore deprecated method

New method is coming in the next stable release: https://github.com/flutter/flutter/issues/160184#issuecomment-2560184639
This commit is contained in:
Tommy Chow
2024-12-25 03:43:54 -05:00
parent 58da3a116c
commit aa43cb6a29
2 changed files with 6 additions and 0 deletions

View File

@ -62,6 +62,9 @@ class OnboardingSetup extends StatelessWidget {
child: ColorPicker( child: ColorPicker(
pickerColor: Color(settingsStore.accentColor), pickerColor: Color(settingsStore.accentColor),
onColorChanged: (newColor) => onColorChanged: (newColor) =>
// TODO: Update when new method arrives in stable:
// https://github.com/flutter/flutter/issues/160184#issuecomment-2560184639
// ignore: deprecated_member_use
settingsStore.accentColor = newColor.value, settingsStore.accentColor = newColor.value,
enableAlpha: false, enableAlpha: false,
pickerAreaBorderRadius: pickerAreaBorderRadius:

View File

@ -54,6 +54,9 @@ class GeneralSettings extends StatelessWidget {
child: ColorPicker( child: ColorPicker(
pickerColor: Color(settingsStore.accentColor), pickerColor: Color(settingsStore.accentColor),
onColorChanged: (newColor) => onColorChanged: (newColor) =>
// TODO: Update when new method arrives in stable:
// https://github.com/flutter/flutter/issues/160184#issuecomment-2560184639
// ignore: deprecated_member_use
settingsStore.accentColor = newColor.value, settingsStore.accentColor = newColor.value,
enableAlpha: false, enableAlpha: false,
pickerAreaBorderRadius: pickerAreaBorderRadius: