Keep pager controls clear of floating bars

This commit is contained in:
2026-11-01 02:05:06 +00:00
parent f422d26e32
commit 821d1a8836
4 changed files with 134 additions and 45 deletions
@@ -231,12 +231,24 @@ class _ChangesViewerState extends State<ChangesViewer> {
alignment: AlignmentDirectional.centerEnd,
heightFactor: 1,
widthFactor: 1,
child: Padding(
padding: const EdgeInsets.all(8),
child: IntrinsicWidth(
child: GlassPill(
cupertino: usesCupertinoHost(context),
child: pager,
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: Padding(
padding: const EdgeInsets.all(8),
child: IntrinsicWidth(
child: GlassPill(
cupertino: usesCupertinoHost(context),
child: pager,
),
),
),
),
),