DEV Community

Cover image for Flutter AppBar Example
Easy Flutter
Easy Flutter

Posted on • Originally published at easyflutter.com

Flutter AppBar Example

As a part of our flutter tutorial series, we’re going to explore AppBar example. Usually AppBar can be seen in top header position to display title, navigation and few action buttons.

This article originally published in https://easyflutter.com/flutter-appbar-example/

Flutter AppBar Example Source code

Scaffold(
  appBar: AppBar(
    leading: Icon(Icons.menu),
    backgroundColor: Colors.brown,
    title: Text("EasyFlutter"),
    centerTitle: true,
    actions: [
      IconButton(
        icon: Icon(Icons.search),
        onPressed: () {
          print("Search Pressed");
        },
      ),
      IconButton(
        icon: Icon(Icons.more_vert),
        onPressed: () {
          print("More Pressed");
        },
      ),
    ],
  ),
)

Download latest source code at: https://easyflutter.com/flutter-appbar-example/

Heroku

Built for developers, by developers.

Whether you're building a simple prototype or a business-critical product, Heroku's fully-managed platform gives you the simplest path to delivering apps quickly — using the tools and languages you already love!

Learn More

Top comments (0)

Jetbrains Survey

Calling all developers!

Participate in the Developer Ecosystem Survey 2025 and get the chance to win a MacBook Pro, an iPhone 16, or other exciting prizes. Contribute to our research on the development landscape.

Take the survey

AWS Security LIVE!

Hosted by security experts, AWS Security LIVE! showcases AWS Partners tackling real-world security challenges. Join live and get your security questions answered.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️