Skip to content

Commit

Permalink
FIX: Prop placement of tonalSubheading and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rydmike committed Mar 16, 2024
1 parent 4c39804 commit 225a877
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions lib/src/show_color_picker_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ Future<Color> showColorPickerDialog(
/// Used to configure the copy paste behavior of the color picker.
///
/// Defaults to [ColorPickerCopyPasteBehavior] ().
ColorPickerCopyPasteBehavior copyPasteBehavior = const ColorPickerCopyPasteBehavior(),
ColorPickerCopyPasteBehavior copyPasteBehavior =
const ColorPickerCopyPasteBehavior(),

/// Icon data for the icon used to indicate the selected color.
///
Expand Down Expand Up @@ -451,7 +452,8 @@ Future<Color> showColorPickerDialog(
/// * [ColorPickerType.bw] : 'Black & White'
/// * [ColorPickerType.custom] : 'Custom'
/// * [ColorPickerType.wheel] : 'Wheel'
Map<ColorPickerType, String> pickerTypeLabels = const <ColorPickerType, String>{
Map<ColorPickerType, String> pickerTypeLabels =
const <ColorPickerType, String>{
ColorPickerType.primary: ColorPicker._selectPrimaryLabel,
ColorPickerType.accent: ColorPicker._selectAccentLabel,
ColorPickerType.bw: ColorPicker._selectBlackWhiteLabel,
Expand All @@ -469,7 +471,8 @@ Future<Color> showColorPickerDialog(
///
/// Defaults to an empty map. If the map is empty, the custom colors picker
/// will not be shown even if it is enabled in `pickersEnabled`.
Map<ColorSwatch<Object>, String> customColorSwatchesAndNames = const <ColorSwatch<Object>, String>{},
Map<ColorSwatch<Object>, String> customColorSwatchesAndNames =
const <ColorSwatch<Object>, String>{},

/// Color swatch to name map, with custom swatches and their names.
///
Expand All @@ -480,7 +483,8 @@ Future<Color> showColorPickerDialog(
///
/// Defaults to an empty map. If the map is empty, the custom colors picker
/// will not be shown even if it is enabled in [pickersEnabled].
Map<ColorSwatch<Object>, String> customSecondaryColorSwatchesAndNames = const <ColorSwatch<Object>, String>{},
Map<ColorSwatch<Object>, String> customSecondaryColorSwatchesAndNames =
const <ColorSwatch<Object>, String>{},

// ***************************************************************************
// Below properties that refer to the dialog
Expand Down Expand Up @@ -587,7 +591,8 @@ Future<Color> showColorPickerDialog(
///
/// Defines the minimum space between the screen's edges and the dialog.
/// Defaults to `EdgeInsets.symmetric(horizontal: 40, vertical: 24)`.
final EdgeInsets insetPadding = const EdgeInsets.symmetric(horizontal: 40, vertical: 24),
final EdgeInsets insetPadding =
const EdgeInsets.symmetric(horizontal: 40, vertical: 24),

/// Controls how the contents of the dialog are clipped (or not) to the
/// given shape.
Expand Down Expand Up @@ -712,10 +717,10 @@ Future<Color> showColorPickerDialog(
title: title,
heading: heading,
subheading: subheading,
tonalSubheading: tonalSubheading,
wheelSubheading: wheelSubheading,
recentColorsSubheading: recentColorsSubheading,
opacitySubheading: opacitySubheading,
tonalSubheading: tonalSubheading,
showMaterialName: showMaterialName,
materialNameTextStyle: materialNameTextStyle,
showColorName: showColorName,
Expand Down

0 comments on commit 225a877

Please sign in to comment.