@@ -342,7 +342,10 @@ class MenuBar extends StatelessWidget {
342
342
margin: const EdgeInsets .symmetric (vertical: 30 ),
343
343
child: Row (
344
344
children: < Widget > [
345
- GestureDetector (
345
+ InkWell (
346
+ hoverColor: Colors .transparent,
347
+ highlightColor: Colors .transparent,
348
+ splashColor: Colors .transparent,
346
349
onTap: () => Navigator .popUntil (
347
350
context, ModalRoute .withName (Navigator .defaultRouteName)),
348
351
child: Text ("MINIMAL" ,
@@ -357,57 +360,42 @@ class MenuBar extends StatelessWidget {
357
360
alignment: Alignment .centerRight,
358
361
child: Wrap (
359
362
children: < Widget > [
360
- FlatButton (
363
+ TextButton (
361
364
onPressed: () => Navigator .popUntil (context,
362
365
ModalRoute .withName (Navigator .defaultRouteName)),
363
- child: Text (
366
+ child: const Text (
364
367
"HOME" ,
365
- style: buttonTextStyle,
366
368
),
367
- splashColor: Colors .transparent,
368
- hoverColor: Colors .transparent,
369
- highlightColor: Colors .transparent,
369
+ style: menuButtonStyle,
370
370
),
371
- FlatButton (
371
+ TextButton (
372
372
onPressed: () {},
373
- child: Text (
373
+ child: const Text (
374
374
"PORTFOLIO" ,
375
- style: buttonTextStyle,
376
375
),
377
- splashColor: Colors .transparent,
378
- hoverColor: Colors .transparent,
379
- highlightColor: Colors .transparent,
376
+ style: menuButtonStyle,
380
377
),
381
- FlatButton (
378
+ TextButton (
382
379
onPressed: () =>
383
380
Navigator .pushNamed (context, Routes .style),
384
- child: Text (
381
+ child: const Text (
385
382
"STYLE" ,
386
- style: buttonTextStyle,
387
383
),
388
- splashColor: Colors .transparent,
389
- hoverColor: Colors .transparent,
390
- highlightColor: Colors .transparent,
384
+ style: menuButtonStyle,
391
385
),
392
- FlatButton (
386
+ TextButton (
393
387
onPressed: () {},
394
- child: Text (
388
+ child: const Text (
395
389
"ABOUT" ,
396
- style: buttonTextStyle,
397
390
),
398
- splashColor: Colors .transparent,
399
- hoverColor: Colors .transparent,
400
- highlightColor: Colors .transparent,
391
+ style: menuButtonStyle,
401
392
),
402
- FlatButton (
393
+ TextButton (
403
394
onPressed: () {},
404
- child: Text (
395
+ child: const Text (
405
396
"CONTACT" ,
406
- style: buttonTextStyle,
407
397
),
408
- splashColor: Colors .transparent,
409
- hoverColor: Colors .transparent,
410
- highlightColor: Colors .transparent,
398
+ style: menuButtonStyle,
411
399
),
412
400
],
413
401
),
0 commit comments