Skip to content

Commit 66cca76

Browse files
committed
v13.0.0
1 parent dcc33c8 commit 66cca76

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
## [13.0.0] - 12/02/2023
22

3-
* upgrades to Flutter `3.16.0`
3+
* upgrades to Flutter `3.16.2`
44
* upgrades to Dart `3.2.0`
55
* removes deprecated `text` property from `FastRadioOption<T>`
66
* adds `offLabelColor` and `onLabelColor` properties to `FastSwitch`
77
* adds `barrierColor`, `barrierDismissible` and `barrierLabel` properties to `FastDatePicker`, `FastDateRangePicker` and `FastTimePicker`
88
* adds `optionsViewOpenDirection` property to `FastAutocomplete`
99
* adds `checkmarkColor` and `showCheckmark` properties to `FastChoiceChip`
10+
* adds `showCheckmark` property to `FastChoiceChips`
1011
* adds `canRequestFocus`, `clipBehavior`, `contentInsertionConfiguration`, `cursorOpacityAnimates`,
1112
`dragStartBehavior`, `onAppPrivateCommand`, `scribbleEnabled`, `scrollController`,
1213
`selectionHeightStyle`, `selectionWidthStyle` and `undoController` properties to `FastTextField`

example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ android {
3636
defaultConfig {
3737
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3838
applicationId "com.example.example"
39-
minSdkVersion 16
39+
minSdkVersion flutter.minSdkVersion
4040
targetSdkVersion 31
4141
versionCode flutterVersionCode.toInteger()
4242
versionName flutterVersionName

example/lib/main.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ class FormPage extends StatelessWidget {
106106
borderSide: BorderSide(width: 2),
107107
),
108108
errorBorder: const OutlineInputBorder(
109-
borderSide: BorderSide(color: Colors.red, width: 2),
109+
borderSide: BorderSide(color: Colors.red, width: 1),
110110
),
111111
focusedErrorBorder: OutlineInputBorder(
112112
borderSide:
113-
BorderSide(color: Colors.red[500]!, width: 2),
113+
BorderSide(color: Colors.red[500]!, width: 1),
114114
),
115115
filled: true,
116116
fillColor: Colors.white,
@@ -191,6 +191,7 @@ class FormPage extends StatelessWidget {
191191
name: 'choice_chips',
192192
labelText: 'Choice Chips',
193193
alignment: WrapAlignment.center,
194+
showCheckmark: false,
194195
chipPadding: const EdgeInsets.all(8.0),
195196
chips: [
196197
FastChoiceChip(

lib/src/options/choice_chips.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ class FastChoiceChips extends FastFormField<List<String>> {
134134
this.spacing = 12.0,
135135
this.runAlignment = WrapAlignment.start,
136136
this.runSpacing = 0.0,
137+
this.showCheckmark,
137138
this.textDirection,
138139
this.verticalDirection = VerticalDirection.down,
139140
}) : super(
@@ -153,6 +154,7 @@ class FastChoiceChips extends FastFormField<List<String>> {
153154
final Axis direction;
154155
final WrapAlignment runAlignment;
155156
final double runSpacing;
157+
final bool? showCheckmark;
156158
final double spacing;
157159
final TextDirection? textDirection;
158160
final VerticalDirection verticalDirection;
@@ -205,7 +207,7 @@ ChoiceChip choiceChipBuilder(FastChoiceChip chip, FastChoiceChipsState field) {
205207
selectedShadowColor: chip.selectedShadowColor,
206208
shadowColor: chip.shadowColor,
207209
shape: chip.shape,
208-
showCheckmark: chip.showCheckmark,
210+
showCheckmark: chip.showCheckmark ?? field.widget.showCheckmark,
209211
side: chip.side,
210212
surfaceTintColor: chip.surfaceTintColor,
211213
tooltip: chip.tooltip,

0 commit comments

Comments
 (0)