Enlarge viewer controls and respect safe areas

This commit is contained in:
2026-11-02 17:50:27 +00:00
parent e2ba091f7d
commit e65e2800e6
7 changed files with 188 additions and 152 deletions
@@ -234,19 +234,23 @@ class _ChangesViewerState extends State<ChangesViewer> {
child: MediaQuery.removePadding(
context: context,
removeBottom: true,
child: Padding(
// The inherited bottom inset belongs to the shell bar. Include it
// in this overlay's measured bar height so the pager is stacked
// above it rather than translating into a constrained layout.
padding: EdgeInsets.only(
bottom: MediaQuery.paddingOf(context).bottom,
),
child: SafeArea(
top: false,
minimum: const EdgeInsets.symmetric(horizontal: 8),
child: Padding(
padding: const EdgeInsets.all(8),
child: IntrinsicWidth(
child: GlassPill(
cupertino: usesCupertinoHost(context),
child: pager,
// The inherited bottom inset belongs to the shell bar. Include it
// in this overlay's measured bar height so the pager is stacked
// above it rather than translating into a constrained layout.
padding: EdgeInsets.only(
bottom: MediaQuery.paddingOf(context).bottom,
),
child: Padding(
padding: const EdgeInsets.all(8),
child: IntrinsicWidth(
child: GlassPill(
cupertino: usesCupertinoHost(context),
child: pager,
),
),
),
),