Created
September 5, 2020 13:02
-
-
Save BKinya/23d44eaeae79fd5b176d344beac02107 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
class MyApp extends StatelessWidget { | |
final bool checkBoxValue = false; | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: SafeArea( | |
child: Scaffold( | |
body: Column( | |
children: [ | |
LabelledCheckBox( | |
value: checkBoxValue, | |
label: 'Female', | |
onChanged: (bool newValue) {}, | |
), | |
LabelledCheckBox( | |
value: checkBoxValue, | |
label: 'Male', | |
onChanged: (boolValue) {}, | |
) | |
], | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment