Skip to content

Commit

Permalink
fix some info widgets not being centered
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastGimbus committed Sep 23, 2023
1 parent 05d8277 commit c95cdfb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
28 changes: 15 additions & 13 deletions lib/ui/pages/headphones_settings/headphones_settings_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,21 @@ class HeadphonesSettingsPage extends StatelessWidget {
final l = AppLocalizations.of(context)!;
return Scaffold(
appBar: AppBar(title: Text(l.pageHeadphonesSettingsTitle)),
body: HeadphonesConnectionEnsuringOverlay(
builder: (_, h) {
return ListView(
children: [
AutoPauseSection(headphones: h),
const Divider(indent: 16, endIndent: 16),
DoubleTapSection(headphones: h),
const Divider(indent: 16, endIndent: 16),
HoldSection(headphones: h),
const SizedBox(height: 64),
],
);
},
body: Center(
child: HeadphonesConnectionEnsuringOverlay(
builder: (_, h) {
return ListView(
children: [
AutoPauseSection(headphones: h),
const Divider(indent: 16, endIndent: 16),
DoubleTapSection(headphones: h),
const Divider(indent: 16, endIndent: 16),
HoldSection(headphones: h),
const SizedBox(height: 64),
],
);
},
),
),
);
}
Expand Down
6 changes: 4 additions & 2 deletions lib/ui/pages/home/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ class _HomePageState extends State<HomePage> {
),
],
),
body: HeadphonesConnectionEnsuringOverlay(
builder: (_, h) => HeadphonesControlsWidget(headphones: h),
body: Center(
child: HeadphonesConnectionEnsuringOverlay(
builder: (_, h) => HeadphonesControlsWidget(headphones: h),
),
),
);
}
Expand Down

0 comments on commit c95cdfb

Please sign in to comment.