Questions tagged [flutter-appbar]

For questions relating to the AppBar class of flutter material or related designs. Use this tag in combination with the general [flutter] tag. If your question applies to Flutter more generally, use the [flutter] tag only.

An app bar consists of a toolbar and potentially other widgets, such as a TabBar and a FlexibleSpaceBar. App bars typically expose one or more common actions with IconButtons which are optionally followed by a PopupMenuButton for less common operations (sometimes called the "overflow menu").

App bars are typically used in the Scaffold.appBar property, which places the app bar as a fixed-height widget at the top of the screen. For a scrollable app bar, see SliverAppBar, which embeds an AppBar in a sliver for use in a CustomScrollView.

215 questions
107
votes
13 answers

Make AppBar transparent and show background image which is set to whole screen

I have added AppBar in my flutter application. My screen already have a background image, where i don't want to set appBar color or don't want set separate background image to appBar. I want show same screen background image to appBar also. I…
Rahul Mahadik
  • 11,668
  • 6
  • 41
  • 54
48
votes
2 answers

How to add icon to AppBar in Flutter

If I have an AppBar like this: How do I add a clickable icon to it like this?
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
24
votes
9 answers

How To Place AppBar Title in Left Side in Flutter

Here is my code for AppBar Tittle, but it not Working Widget build(BuildContext context){ return new Scaffold( appBar: new AppBar( title: new Padding( padding: const EdgeInsets.only(left: 20.0), child: new Text("App Name"), …
user8354119
21
votes
5 answers

How to make some icons at Appbar with different alignment?

I faced some problem. I want make an image, a text and two icons in AppBar but I can't make it work as I want. I tried to make some fonts in a row after the images and text. The images and the text successful show in my AppBar, but the rest of 2…
Roman Traversine
  • 868
  • 4
  • 12
  • 22
17
votes
2 answers

How to use TabController

I just learned flutter, I was confused how to use the TabController, I had followed what was described on the official website, but an error appeared, and I don't know how to fix it. I just want to change the title and leading from the appbar when…
anangfaturrohman
  • 391
  • 2
  • 4
  • 8
16
votes
2 answers

Flutter: Best way to change a widget opacity and color on scroll

My goal is to change the color and the opacity of the appbar when user scrolls down. My logic is: scroll offset = 0 : appbar is red with opacity = 1 0 < scroll offset < 40 : appbar is blue with opacity = 0.4 40 <= scroll offset : appbar is blue…
woshitom
  • 4,811
  • 8
  • 38
  • 62
15
votes
2 answers

Flutter GridView with Header

How to create the grid view with scrollable toolbar in FLUTTER. I have found the list view with header ListViewWithHeader. But I need the GridView with header like in the mentioned image below.I have used SilverGrid ignorer to build this layout,…
jazzbpn
  • 6,441
  • 16
  • 63
  • 99
13
votes
3 answers

WebView CustomScrollView + Floating AppBar

I am trying to create a screen that has a WebView (from webview_flutter: ^0.3.5+3) and an AppBar that I want to scroll offscreen on user scroll. I stumbled upon this guide and tried implementing something similar, but no dice. Is there a way to use…
user3403083
  • 131
  • 1
  • 4
11
votes
3 answers

How to change AppBar height dynamically during runtime based on the AppBar content in Flutter?

I'm trying to implement a flutter_tagging inside the AppBar. I managed to add the tagged TextField inside the AppBar and to resize the AppBar using PreferredSize widget using the following code: return PreferredSize( preferredSize:…
Emil Adz
  • 40,709
  • 36
  • 140
  • 187
10
votes
1 answer

How to add a texfield inside the App bar in Flutter?

I'am having trouble in having a TextField on the AppBar so the user can enter input similarly to using a search bar. I need to take the user input and do something with it so it's not a search within my app. This is why it makes senses to use a…
WindBreeze
  • 125
  • 1
  • 2
  • 6
9
votes
4 answers

How to keep hamburger icon without visible appBar flutter

I recently tried keeping a Hamburger icon for my menu slider without an AppBar or at least completely invisible. The first attempt was with a SafeArea but that emptied Scaffold. Then I tried setting the Opacity to 0.0 like shown on the code below.…
Camille Basbous
  • 299
  • 5
  • 11
  • 34
8
votes
2 answers

Finish FlutterActivity from Flutter when integrating Flutter to native host app [Add2App]

When integrating Flutter to a host app (docs) there is a few ways to do it, one of them (simplest) is open Flutter in a new Activity via FlutterActivity class. Like this: // Java hostActivity.startActivity( …
nail
  • 715
  • 7
  • 20
7
votes
3 answers

Flutter/Material 3: AppBar ignores icon themes

In my AppBar the title is displayed with white text, but the icons are a dark grey or something. I Would like to have the icons white, too. But the colors in the icon themes have no effect! Not when added directly to the AppBar... Scaffold( …
7
votes
2 answers

How to create button on the left in Appbar [flutter]

I tried to make the button[that pop new screen]on the left of the app-bar but I found only drawer that is not what I want. what I want in AppBar: ------------------------------------------------
| button |----------text----------| button…
7
votes
2 answers

Flutter drawer background image

I wonder if i can use background image instead of color in flutter app drawer header, Is there any way? I am able to customize he color but i am wonder if is there any property to alter the color with custom image.
1
2 3
14 15