Skip to content

Commit

Permalink
remove useless SafeArea
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-anders committed Dec 27, 2024
1 parent b4ebaf1 commit a957f6e
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions lib/src/view/settings/account_preferences_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -566,27 +566,25 @@ class _ShowRatingsSettingsScreenState extends ConsumerState<ShowRatingsSettingsS
? const CircularProgressIndicator.adaptive()
: null,
),
child: SafeArea(
child: ListView(
children: [
ChoicePicker(
choices: ShowRatings.values,
selectedItem: data.showRatings,
titleBuilder: (t) => Text(t.label(context)),
onSelectedItemChanged:
snapshot.connectionState == ConnectionState.waiting
? null
: (ShowRatings? v) {
final future = ref
.read(accountPreferencesProvider.notifier)
.setShowRatings(v ?? data.showRatings);
setState(() {
_pendingSetShowRatings = future;
});
},
),
],
),
child: ListView(
children: [
ChoicePicker(
choices: ShowRatings.values,
selectedItem: data.showRatings,
titleBuilder: (t) => Text(t.label(context)),
onSelectedItemChanged:
snapshot.connectionState == ConnectionState.waiting
? null
: (ShowRatings? v) {
final future = ref
.read(accountPreferencesProvider.notifier)
.setShowRatings(v ?? data.showRatings);
setState(() {
_pendingSetShowRatings = future;
});
},
),
],
),
);
},
Expand Down

0 comments on commit a957f6e

Please sign in to comment.