Skip to content

Commit

Permalink
Version 3.0.0
Browse files Browse the repository at this point in the history
3.0.0 breaking style:
Make dialog buttonPadding and actionsPadding nullable and let the default to theme default or theme values if not defioned, Previously defaulted to EdgeInsets.all(16).

New dialog props:
- barrierLabel
- anchorPoint

Web Demo:
Modernize theme and use Material 3
  • Loading branch information
rydmike committed Nov 23, 2022
1 parent 5ec4209 commit 9b56b1b
Show file tree
Hide file tree
Showing 36 changed files with 1,082 additions and 1,145 deletions.
24 changes: 23 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,34 @@

All notable changes to the **FlexColorPicker** package are documented in this file.

## 3.0.0

**Nov 23, 2022**

**STYLE BREAKING**

* The color picker dialog `actionsPadding` now default to null. This results in that if it is undefined, its value is determined by the ambient `AlertDialogTheme`, or if it is not defined either, the default for `AlertDialog`. Which have different defaults depending on if Material 2 or Material 3 is used. Default value in previous versions of **FlexColorPicker** was: `EdgeInsets.symmetric(horizontal: 16)`
* The color picker dialog `buttonPadding` now default to null. This results in that if it is undefined, its value is determined by the ambient `AlertDialogTheme`, or if it is not defined either, the default for `AlertDialog`. Which have different defaults depending on if Material 2 or Material 3 is used. Default value in previous versions of **FlexColorPicker** was: `EdgeInsets.all(16)`

* The API usage of the above properties is unchanged. It is only the default behavior that has been updated to be less opinionated and enabled correct theme response.

**REMOVED**

* Removed in version 2.1.0 no longer used and deprecated parameter `useRootNavigator` in `ColorPicker` method `showPickerDialog`.
* Removed in version 2.1.0 no longer used and deprecated parameter `useRootNavigator` in function `showColorPickerDialog`.

**NEW**

* To `ColorPicker` method `showPickerDialog` added parameters `barrierLabel` and `anchorPoint` as pass along values to Flutter SDK `showDialog`.
* To function `showColorPickerDialog` added parameters `barrierLabel` and `anchorPoint` as pass along values to Flutter SDK `showDialog`.


## 2.6.1

**Sep 9, 2022**

* Add `secondaryOffset` to `OpacitySliderTrack` `paint` method override to **fix** new requirement
for master channel compatibility, works with stable channel too. Thanks
for master channel compatibility, works with the stable channel too. Thanks
[Dan Reynolds](https://github.com/danReynolds) for the PR.

## 2.6.0
Expand Down
Loading

0 comments on commit 9b56b1b

Please sign in to comment.