Created
June 29, 2019 08:54
-
-
Save NishantDesai1306/1333b04a17f4d88d6a6fbd229fa6dec3 to your computer and use it in GitHub Desktop.
Code for DefaultAppBar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DefaultAppBar extends StatefulWidget implements PreferredSizeWidget { | |
@override | |
Size get preferredSize => Size.fromHeight(56.0); | |
@override | |
_DefaultAppBarState createState() => _DefaultAppBarState(); | |
} | |
class _DefaultAppBarState extends State<DefaultAppBar> { | |
@override | |
Widget build(BuildContext context) { | |
return Stack( | |
children: [ | |
AppBar( | |
title: Text("Flutter App"), | |
actions: <Widget>[ | |
IconButton( | |
icon: Icon(Icons.search), | |
), | |
IconButton( | |
icon: Icon(Icons.more_vert), | |
onPressed: () {}, | |
) | |
], | |
), | |
] | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment