parent
a8848b2ff3
commit
9e36a849ae
3 changed files with 35 additions and 6 deletions
|
@ -52,14 +52,28 @@ Widget createScaffold() {
|
|||
return 'False!';
|
||||
}
|
||||
},
|
||||
onChanged: (value) {
|
||||
if (value) {
|
||||
print("ListTile Checked :)");
|
||||
} else {
|
||||
print("ListTile Not Checked :(");
|
||||
}
|
||||
},
|
||||
),
|
||||
CheckboxIconFormField(
|
||||
initialValue: true,
|
||||
enabled: false,
|
||||
iconSize: 32,
|
||||
onSaved: (bool? value) {},
|
||||
onChanged: (value) {
|
||||
if (value) {
|
||||
print("Icon Checked :)");
|
||||
} else {
|
||||
print("Icon Not Checked :(");
|
||||
}
|
||||
},
|
||||
),
|
||||
RaisedButton(
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
if (_formKey.currentState!.validate()) {
|
||||
_formKey.currentState!.save();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue