Skip to content

Instantly share code, notes, and snippets.

@BKinya
Created September 5, 2020 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BKinya/23d44eaeae79fd5b176d344beac02107 to your computer and use it in GitHub Desktop.
Save BKinya/23d44eaeae79fd5b176d344beac02107 to your computer and use it in GitHub Desktop.
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