Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ packages:
path: ".."
relative: true
source: path
version: "9.4.0"
version: "9.4.1"
flutter_lints:
dependency: "direct dev"
description:
Expand Down Expand Up @@ -224,10 +224,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
url: "https://pub.dev"
source: hosted
version: "14.2.4"
version: "14.2.5"
sdks:
dart: ">=3.5.0 <4.0.0"
flutter: ">=3.24.0"
10 changes: 10 additions & 0 deletions lib/src/fields/form_builder_choice_chips.dart
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,14 @@ class FormBuilderChoiceChip<T> extends FormBuilderFieldDecoration<T> {

final ShapeBorder avatarBorder;

/// Indicates whether a checkmark should be displayed on the selected choice chip.
///
/// Defaults to `true`.
///
/// When set to `true`, a checkmark will appear on the selected chip to visually
/// indicate its selection status. If set to `false`, no checkmark will be shown.
final bool showCheckmark;

/// Creates a list of `Chip`s that acts like radio buttons
FormBuilderChoiceChip({
super.autovalidateMode = AutovalidateMode.disabled,
Expand Down Expand Up @@ -290,6 +298,7 @@ class FormBuilderChoiceChip<T> extends FormBuilderFieldDecoration<T> {
this.textDirection,
this.verticalDirection = VerticalDirection.down,
this.visualDensity,
this.showCheckmark = true,
}) : super(builder: (FormFieldState<T?> field) {
final state = field as _FormBuilderChoiceChipState<T>;

Expand Down Expand Up @@ -330,6 +339,7 @@ class FormBuilderChoiceChip<T> extends FormBuilderFieldDecoration<T> {
padding: padding,
visualDensity: visualDensity,
avatarBorder: avatarBorder,
showCheckmark: showCheckmark,
),
],
),
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
url: "https://pub.dev"
source: hosted
version: "14.2.4"
version: "14.2.5"
sdks:
dart: ">=3.5.0 <4.0.0"
flutter: ">=3.24.0"
Loading