File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -348,8 +348,10 @@ class MinimalMenuBar extends StatelessWidget {
348
348
hoverColor: Colors .transparent,
349
349
highlightColor: Colors .transparent,
350
350
splashColor: Colors .transparent,
351
- onTap: () => Navigator .popUntil (
352
- context, ModalRoute .withName (Navigator .defaultRouteName)),
351
+ onTap: () => Navigator .pushNamedAndRemoveUntil (
352
+ context,
353
+ Navigator .defaultRouteName,
354
+ ModalRoute .withName (Navigator .defaultRouteName)),
353
355
child: Text ("MINIMAL" ,
354
356
style: GoogleFonts .montserrat (
355
357
color: textPrimary,
@@ -373,7 +375,9 @@ class MinimalMenuBar extends StatelessWidget {
373
375
child: Wrap (
374
376
children: [
375
377
TextButton (
376
- onPressed: () => Navigator .popUntil (context,
378
+ onPressed: () => Navigator .pushNamedAndRemoveUntil (
379
+ context,
380
+ Navigator .defaultRouteName,
377
381
ModalRoute .withName (Navigator .defaultRouteName)),
378
382
style: menuButtonStyle,
379
383
child: const Text (
You can’t perform that action at this time.
0 commit comments