WayFar
Search…
KitTagCheck

Description

A selectable tag with a label.

Preview

Code

tag_check.dart
1
class KitTagCheck extends StatefulWidget {
2
3
final String label;
4
bool isChecked;
5
final Function(bool checked) onChange;
6
7
KitTagCheck({required this.label, required this.onChange, this.isChecked = false, Key? key}) : super(key: key);
8
9
...
10
}
Copied!

API

Property
Description
Type
Default
label
The label shown on the tag
String
-
isChecked
Is the item checked (selected)
String
-
onChange
Callback when the selected item has changed
Function(bool)
-
Copy link