Questions tagged [appbar]

An application desktop toolbar (also called an appbar) is a window that is similar to the Windows taskbar.

It is anchored to an edge of the screen, and it typically contains buttons that give the user quick access to other applications and windows.

An app bar consists of a toolbar and potentially other widgets

source: http://msdn.microsoft.com/en-us/library/windows/desktop/cc144177(v=vs.85).aspx

634 questions
285
votes
16 answers

flutter remove back button on appbar

I am wondering, if anyone knows of a way to remove the back button that shows up on the appBar in a flutter app when you use Navigator.pushNamed to go to another page. The reason I do not want it on this resulting page is that it is coming from the…
Robert
  • 5,347
  • 13
  • 40
  • 57
123
votes
4 answers

Removing the drop shadow from a Scaffold AppBar in Flutter?

Is there a way to remove the drop shadow under the app bar (AppBar class) when using a Scaffold widget in Flutter?
Matt S.
  • 9,902
  • 6
  • 29
  • 25
80
votes
16 answers

How to get AppBar height in Flutter

How can I get the height of an AppBar in Flutter? I am using the MarialApp Widget ('package:flutter/material.dart'). I have the height of my Context and would like to deduct the height of the appbar. final double height =…
R2T8
  • 2,122
  • 2
  • 14
  • 17
64
votes
8 answers

How do you do AppBar docking (to screen edge, like WinAmp) in WPF?

Is there any complete guidance on doing AppBar docking (such as locking to the screen edge) in WPF? I understand there are InterOp calls that need to be made, but I'm looking for either a proof of concept based on a simple WPF form, or a…
paulwhit
  • 8,719
  • 4
  • 29
  • 30
64
votes
9 answers

How to change background color of TabBar without changing the AppBar in flutter?

How to change background color of TabBar without changing the AppBar? The TabBar does not have a background property, is there a workaround?
amater
  • 661
  • 1
  • 6
  • 10
62
votes
8 answers

How can I have my AppBar in a separate file in Flutter while still having the Widgets show?

I am currently building a Flutter app that recommends restaurants around the area. However, I've gotten myself in quite the kerfuffle. I want my app to have the code for the AppBar separate from the code for each screen for the sake of organization…
stereoputrid
  • 734
  • 1
  • 5
  • 10
57
votes
7 answers

Gradient Background on Flutter AppBar

How do I set the backgroundColor of theAppBar to a gradient?
MietieMn
  • 621
  • 2
  • 6
  • 8
48
votes
7 answers

How to create a custom AppBar widget?

I'm new to flutter. I'm trying to create a custom appbar widget and importing the widget in pages. But I was unable to create the widget. import 'package:flutter/material.dart'; class AppBar extends StatelessWidget{ @override Widget…
KURRU HEM
  • 1,643
  • 3
  • 15
  • 22
43
votes
5 answers

How to create an AppBar with a bottom coloured border in Flutter?

I would like to create an App Bar like this which has a bottom border as well a tint of shadow which can be done using elevation. Could someone provide a sample code snippet to achieve this
Keshav Aditya R P
  • 3,001
  • 5
  • 21
  • 28
42
votes
10 answers

How to change Status Bar and App Bar color in Flutter?

I'm trying to change the color of the system status bar to black. The configuration seems to be overridden by the AppBar class. I can achieve what I want by assigning the theme: to ThemeData.dark() when creating the Material App, and then specifying…
8oh8
  • 1,247
  • 5
  • 19
  • 35
31
votes
6 answers

How can I have clickable text in the AppBar in Flutter

I am aware that I can use IconButton in the actions of the AppBar in Flutter. But instead of the icon, I'd like the user to see the words 'Save' or 'Back' or 'Cancel' and click on them in the AppBar. How can I achieve this? Here is part of my code…
RRy
  • 433
  • 1
  • 5
  • 15
27
votes
7 answers

Flutter: AppBar background image

Is it possible to add a background image to the Scaffold's AppBar? I know about sliver but when you scrolldown the image gets hidden and the AppBar changes color right? So I want to know if this is possible and if not, are there any existing…
Ny Regency
  • 1,620
  • 8
  • 25
  • 43
21
votes
3 answers

How to make the Toolbar snap into view or out of view when using Google Design Library?

I am trying to achieve an effect like WhatsApp has, where the Toolbar (when scrolled) will clip into view magnetlike, or out of view magnetlike. What I have im my MainActivity XML: DrawerLayout - Base Layout CoordinatorLayout - Layout for the…
Linxy
  • 2,525
  • 3
  • 22
  • 37
20
votes
1 answer

Implementing PreferredSizeWidget For Use As Appbar

I am trying to build a component that can be used to identify two columns in a listview. I wish to be able to implement this title bar as the appbar in a Scaffold such that I can implement the ListView in the body part of the Scaffold. I want to do…
jared-nelsen
  • 1,181
  • 5
  • 13
  • 27
20
votes
1 answer

Android appbarlayout elevation appears in status bar

How do I get rid of the elevation in the status bar? If I set in AppbarLayout the app:elevation to 0dp the elevation doesn't appear anymore in status bar but also not below the AppbarLayout. How do I just get the elevation under the…
Joestoen
  • 545
  • 1
  • 5
  • 14
1
2 3
42 43