Skip to content

Commit

Permalink
replace late value
Browse files Browse the repository at this point in the history
  • Loading branch information
mchome committed Nov 13, 2021
1 parent 54d089f commit 7482dc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions example/lib/pickers/block_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Widget pickerLayoutBuilder(BuildContext context, List<Color> colors, PickerItem
title: const Text('Portrait Cross Axis Count'),
subtitle: Text(_portraitCrossAxisCount.toString()),
trailing: SizedBox(
width: 300,
width: 200,
child: Slider(
value: _portraitCrossAxisCount.toDouble(),
min: 1,
Expand All @@ -158,7 +158,7 @@ Widget pickerLayoutBuilder(BuildContext context, List<Color> colors, PickerItem
title: const Text('Landscape Cross Axis Count'),
subtitle: Text(_landscapeCrossAxisCount.toString()),
trailing: SizedBox(
width: 300,
width: 200,
child: Slider(
value: _landscapeCrossAxisCount.toDouble(),
min: 1,
Expand Down Expand Up @@ -228,7 +228,7 @@ Widget pickerItemBuilder(Color color, bool isCurrentColor, void Function() chang
title: const Text('Border Radius'),
subtitle: Text(_borderRadius.toString()),
trailing: SizedBox(
width: 300,
width: 200,
child: Slider(
value: _borderRadius,
min: 0,
Expand All @@ -243,7 +243,7 @@ Widget pickerItemBuilder(Color color, bool isCurrentColor, void Function() chang
title: const Text('Blur Radius'),
subtitle: Text(_blurRadius.toString()),
trailing: SizedBox(
width: 300,
width: 200,
child: Slider(
value: _blurRadius,
min: 0,
Expand All @@ -258,7 +258,7 @@ Widget pickerItemBuilder(Color color, bool isCurrentColor, void Function() chang
title: const Text('Icon Size'),
subtitle: Text(_iconSize.toString()),
trailing: SizedBox(
width: 300,
width: 200,
child: Slider(
value: _iconSize,
min: 1,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/material_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class _MaterialPickerState extends State<MaterialPicker> {
];

List<Color> _currentColorType = [Colors.red, Colors.redAccent];
late Color _currentShading;
Color _currentShading = Colors.transparent;

List<Map<Color, String>> _shadingTypes(List<Color> colors) {
List<Map<Color, String>> result = [];
Expand Down

0 comments on commit 7482dc1

Please sign in to comment.