Last active
March 17, 2022 17:02
-
-
Save MwBakker/1ba00950a84d753576b0541c5b1066d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Checkbox( | |
value: ref.watch(boolNr1.state).state, | |
onChanged: (value) { | |
ref.watch(boolNr1.state).state = value; | |
}, | |
), | |
Checkbox( | |
value: ref.watch(boolNr2.state).state, | |
onChanged: (value) { | |
ref.watch(boolNr2.state).state = value; | |
}, | |
), | |
Checkbox( | |
value: ref.watch(boolNr3.state).state, | |
onChanged: (value) { | |
ref.watch(boolNr3.state).state = value; | |
}, | |
), | |
.... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final StateProvider<bool> boolNr1 = StateProvider((ref) => false); | |
final StateProvider<bool> boolNr2 = StateProvider((ref) => false); | |
final StateProvider<bool> boolNr3 = StateProvider((ref) => false); | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment