Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Mar 3, 2024
Requires min Flutter 3.16.0 and Dart 3.0.0.
NEW
filled
andfilledTonal
toColorPickerActionButtonType
and added support for these button styles as OK/Cancel buttons in the ColorPicker dialog.dialogActionOnlyOkButton
toColorPickerActionButtons
. Defaults to false. If set to true anddialogActionButtons
is true, only the OK button will be shown.ColorPickerType.custom
there is now also aColorPickerType.customSecondary
picker selector. It gets its values fromColorPicker.customSecondaryColorSwatchesAndNames
.ColorPicker.enableOpacity
is not enabled. Nothing new is needed to use this feature. It works automatically when custom color palettes are used that have partially transparent colors in them.ColorTools.createPrimarySwatch
andColorTools.createAccentSwatch
now create color swatches with alpha channel value kept at its input values for all created swatch indexes. Previously they set alpha to#FF
, even if the value might have been something else. Creating palettes with very low alpha in the source color will not produce pretty palettes, but it is now possible to create them.ColorPicker
propertycolumnSpacing
. For two key elements, you can now override this spacing.toolbarSpacing
to adjust the vertical spacing below the top toolbar header and its action buttons. The purpose is to enable using zero space or close to it, so the top toolbar and action buttons can be closer to the picker selection control than the rest of the spacing in the picker uses.shadesSpacing
to adjust the vertical spacing after the Material-2 swatch palette. By setting it to zero or one, you can create a design where the Material-2 swatch-based palette is closer to or connected to the Material-3 tonal palette. As long as the tonal palette does not use a heading, of course.toolbarSpacing
andshadesSpacing
default tocolumnSpacing
if they are not defined.CHANGE
.icon
Material button variants, when icon usage is enabled. Previously they baked in the leading icon into the button child Widget. This version follows the Material design spec exactly. The visual change is minor, but it does look better now when icons are used.FIX
Package
RawKeyboardListener
,RawKeyEvent
,RawKeyDownEvent
,RawKeyEventDataMacOs
,RawKeyEventDataIos
withShortcut
APIs.InheritedTheme.capture
should useactionButtons.useRootNavigator
value and not default it to true. Fixed.Web demo
wheelSquarePadding
andwheelSquareBorderRadius
. Fixed.