Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzanardo committed Jan 2, 2024
1 parent 0f08c27 commit b1ce08e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions widgetbook/lib/widgetbook/use_cases/checkboxes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ import 'package:widgetbook_annotation/widgetbook_annotation.dart' as widgetbook;

Widget build() {
var selected = false;
return Center(
child: StatefulBuilder(
builder: (context, setState) {
return NesCheckBox(
onChange: (value) {
setState(() {
selected = value;
});
},
value: selected,
);
},
),
);
return Center(
child: StatefulBuilder(
builder: (context, setState) {
return NesCheckBox(
onChange: (value) {
setState(() {
selected = value;
});
},
value: selected,
);
},
),
);
}

@widgetbook.UseCase(
Expand Down

0 comments on commit b1ce08e

Please sign in to comment.