File tree 1 file changed +11
-6
lines changed
gallery/gallery/lib/pages 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -178,15 +178,19 @@ class _DemoPageState extends State<DemoPage> with TickerProviderStateMixin {
178
178
final colorScheme = Theme .of (context).colorScheme;
179
179
final iconColor = colorScheme.onSurface;
180
180
final selectedIconColor = colorScheme.primary;
181
+ final appBarPadding = isDesktop ? 20.0 : 0.0 ;
181
182
182
183
final appBar = AppBar (
183
184
backgroundColor: Colors .transparent,
184
- leading: IconButton (
185
- icon: const BackButtonIcon (),
186
- tooltip: MaterialLocalizations .of (context).backButtonTooltip,
187
- onPressed: () {
188
- Navigator .maybePop (context);
189
- },
185
+ leading: Padding (
186
+ padding: EdgeInsetsDirectional .only (start: appBarPadding),
187
+ child: IconButton (
188
+ icon: const BackButtonIcon (),
189
+ tooltip: MaterialLocalizations .of (context).backButtonTooltip,
190
+ onPressed: () {
191
+ Navigator .maybePop (context);
192
+ },
193
+ ),
190
194
),
191
195
actions: [
192
196
if (_hasOptions)
@@ -244,6 +248,7 @@ class _DemoPageState extends State<DemoPage> with TickerProviderStateMixin {
244
248
_state == _DemoState .fullscreen ? selectedIconColor : iconColor,
245
249
onPressed: () => _handleTap (_DemoState .fullscreen),
246
250
),
251
+ SizedBox (width: appBarPadding),
247
252
],
248
253
);
249
254
You can’t perform that action at this time.
0 commit comments