Keep settings and delivery updates together
Preserve the reviewed grouped Settings page while fixing its embedded phone safe area, and land the accompanying notification, walkthrough, terminal, and documentation updates captured by this run.
This commit is contained in:
@@ -184,15 +184,26 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final content = SafeArea(
|
||||
bottom: false,
|
||||
child: SettingsSearchPage(sections: _pageSections()),
|
||||
);
|
||||
if (widget.embedded) return content;
|
||||
final page = SettingsSearchPage(sections: _pageSections());
|
||||
if (widget.embedded) {
|
||||
// The shell's floating tab bar sits over this body, and the body reads
|
||||
// the bar's height as its bottom padding. The page's rows are controls
|
||||
// and text, so they stop at the bar's top edge instead of scrolling
|
||||
// under the glass where they cannot be read. The reserved space is
|
||||
// removed from the page's own inset so it is not counted twice.
|
||||
return Padding(
|
||||
padding: EdgeInsets.only(bottom: MediaQuery.paddingOf(context).bottom),
|
||||
child: MediaQuery.removePadding(
|
||||
context: context,
|
||||
removeBottom: true,
|
||||
child: SafeArea(bottom: false, child: page),
|
||||
),
|
||||
);
|
||||
}
|
||||
return Scaffold(
|
||||
extendBodyBehindAppBar: true,
|
||||
appBar: const SegmentedBar(title: 'Settings'),
|
||||
body: content,
|
||||
body: SafeArea(bottom: false, child: page),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user