Enlarge viewer controls and respect safe areas
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user