Skip to content

Commit

Permalink
temporarily ignore deprecated method
Browse files Browse the repository at this point in the history
New method is coming in the next stable release: flutter/flutter#160184 (comment)
  • Loading branch information
tommyxchow committed Dec 25, 2024
1 parent 58da3a1 commit aa43cb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/screens/onboarding/onboarding_setup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ class OnboardingSetup extends StatelessWidget {
child: ColorPicker(
pickerColor: Color(settingsStore.accentColor),
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,
enableAlpha: false,
pickerAreaBorderRadius:
Expand Down
3 changes: 3 additions & 0 deletions lib/screens/settings/general_settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ class GeneralSettings extends StatelessWidget {
child: ColorPicker(
pickerColor: Color(settingsStore.accentColor),
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,
enableAlpha: false,
pickerAreaBorderRadius:
Expand Down

0 comments on commit aa43cb6

Please sign in to comment.