Skip to content

Commit

Permalink
Update radio_use_case.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
tilucasoli committed Oct 23, 2024
1 parent 202fbad commit cba6a46
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/remix/demo/lib/components/radio_use_case.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,6 @@ enum Theme {
name: 'Radio Component',
type: Radio,
)
class _ThemeState extends ValueNotifier<Theme> {
_ThemeState(super.value);

void update(Theme value) {
this.value = value;
notifyListeners();
}
}

_ThemeState _state = _ThemeState(Theme.dark);

Widget buildRadioUseCase(BuildContext context) {
return Scaffold(
body: Center(
Expand Down Expand Up @@ -64,3 +53,14 @@ Widget buildRadioUseCase(BuildContext context) {
),
);
}

class _ThemeState extends ValueNotifier<Theme> {
_ThemeState(super.value);

void update(Theme value) {
this.value = value;
notifyListeners();
}
}

_ThemeState _state = _ThemeState(Theme.dark);

0 comments on commit cba6a46

Please sign in to comment.