@@ -123,27 +123,32 @@ class _LocationMenuSheetState extends State<_LocationMenuSheet> {
123123
124124 @override
125125 Widget build (BuildContext context) {
126- return Scaffold (
127- appBar: AppBar (
128- leading: BackButton (
129- onPressed: _selectedCity != null
130- ? () => setState (() => _selectedCity = null )
131- : null ,
132- ),
133- title: Text ('切換區域' .i18n),
134- centerTitle: true ,
135- actions: [
136- IconButton (
137- icon: const Icon (Symbols .settings_rounded, size: 20 ),
138- onPressed: widget.onSettingsPressed,
139- tooltip: '位置設定' .i18n,
126+ return Material (
127+ borderRadius: const .vertical (top: .circular (16 )),
128+ clipBehavior: .antiAlias,
129+ child: Scaffold (
130+ appBar: AppBar (
131+ leading: BackButton (
132+ onPressed: _selectedCity != null
133+ ? () => setState (() => _selectedCity = null )
134+ : null ,
140135 ),
141- ],
142- ),
143- body: SingleChildScrollView (
144- child: _selectedCity == null
145- ? _buildCityList (context)
146- : _buildTownList (context),
136+ title: Text ('切換區域' .i18n),
137+ centerTitle: true ,
138+ actions: [
139+ IconButton (
140+ icon: const Icon (Symbols .settings_rounded, size: 20 ),
141+ onPressed: widget.onSettingsPressed,
142+ tooltip: '位置設定' .i18n,
143+ ),
144+ ],
145+ ),
146+ body: SingleChildScrollView (
147+ padding: .only (bottom: context.padding.bottom + 16 ),
148+ child: _selectedCity == null
149+ ? _buildCityList (context)
150+ : _buildTownList (context),
151+ ),
147152 ),
148153 );
149154 }
0 commit comments