Make appbar transparent this below case

transparent scaffold
change appbar opacity flutter
material-ui appbar transparent
add container below appbar flutter
how to make toolbar transparent in flutter
flutter transparent appbar
flutter appbar transparent background image
stack inside scaffold

Guys! I am trying to make this AppBar transparent. Because behind it will have a background but so far I have not had success. I thank you all thank you!

class _HomePageState extends State<HomePage> {
  int index = 0;
  Widget build(BuildContext context) {
    return Scaffold(
      body: show(index),
      appBar: AppBar(
        backgroundColor: Colors.transparent,
        actions: <Widget>[
          IconButton(
            icon: Icon(Icons.settings),
            onPressed: (){},
          )
        ],
      ),
      bottomNavigationBar: Theme(
        data: Theme.of(context).copyWith(
          canvasColor: Colors.grey[900],
        ),
        child: BottomNavigationBar(
          type: BottomNavigationBarType.fixed,
          currentIndex: index,
          showUnselectedLabels: true,
          unselectedItemColor: Colors.white54,
          selectedItemColor: Colors.white,
          onTap: ((int x) {
            setState(() {
              index = x;
            });
          }),
          items: [
            new BottomNavigationBarItem(
                icon: Icon(Icons.home), title: Text("Home")),
            new BottomNavigationBarItem(
                icon: Icon(Icons.search), title: Text("Search")),
            new BottomNavigationBarItem(
                icon: Icon(Icons.library_music), title: Text("Library")),
          ],
        ),
      ),
    );
  }
}

enter image description here

Appbar has shadow by default and if u want transparent appbar, also you need to add elevation: 0 to AppBar for remove shadow.

Make AppBar transparent and show background , Follow below example. In my case I did it as follows: Additional create an app bar with a custom back button (in this case with a FloatingActionButton ). I already tried to set the color to transparent, but it didn't have the desired effect. So my question: How could I set the "CollapsingToolbarLayout" transparent in the initial phase (see image Layer 1 grey box)? Here is my code for the layout. The CollapsingToolbarLayout works great, but I can't see the map below.

Get hint from following code (source https://mrflutter.com/fullscreen-page-with-transparent-appbar-in-flutter/)

@override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Stack(
        children: <Widget>[
          Container(
            decoration: BoxDecoration(
              image: DecorationImage(
                image: NetworkImage(
                    'https://images.unsplash.com/photo-1517030330234-94c4fb948ebc?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1275&q=80'),
                fit: BoxFit.cover,
              ),
            ),
            child: Center(
              child: Text(
                'mrflutter.com',
                style: TextStyle(
                  color: Colors.white,
                  fontSize: 30,
                ),
              ),
            ),
          ),
          Positioned(
            child: AppBar(
              title: Text("Transparent AppBar"),
              backgroundColor: Colors.transparent,
              elevation: 0,
              actions: <Widget>[
                IconButton(
                  icon: Icon(Icons.share),
                  onPressed: () {},
                  tooltip: 'Share',
                ),
              ],
            ),
          )
        ],
      ),
    );
  }

Fullscreen page with transparent AppBar in Flutter, Sometimes one wants to build a completely fullscreen experience with or without an image background. are not done automatically for us (in both cases we would need to create custom ones). Make AppBar transparent. Method 3: Making the taskbar fully transparent with TaskbarTools. TaskbarTools is yet another user-developed tool that has surfaced on Reddit. Even if it’s heavily inspired by TranslucentTB, this application is written in C# and does a few things even better. Here’s a quick guide to using TaskbarTools to make your taskbar transparent or

try to wrap both AppBar and your Body part in stack and make AppBar Trasparent so you will get your desired Output

class _HomePageState extends State<HomePage> {
  int index = 0;

  Widget build(BuildContext context) {
    return Scaffold(
      body: Stack(
        children: <Widget>[
          show(index),
          Wrap(
            children: <Widget>[
              AppBar(
                backgroundColor: Colors.transparent,
                actions: <Widget>[
                  IconButton(
                    icon: Icon(Icons.settings),
                    onPressed: () {},
                  )
                ],
              ),
            ],
          ),
        ],
      ),
      bottomNavigationBar: Theme(
        data: Theme.of(context).copyWith(
          canvasColor: Colors.grey[900],
        ),
        child: BottomNavigationBar(
          type: BottomNavigationBarType.fixed,
          currentIndex: index,
          showUnselectedLabels: true,
          unselectedItemColor: Colors.white54,
          selectedItemColor: Colors.white,
          onTap: ((int x) {
            setState(() {
              index = x;
            });
          }),
          items: [
            new BottomNavigationBarItem(
                icon: Icon(Icons.home), title: Text("Home")),
            new BottomNavigationBarItem(
                icon: Icon(Icons.search), title: Text("Search")),
            new BottomNavigationBarItem(
                icon: Icon(Icons.library_music), title: Text("Library")),
          ],
        ),
      ),
    );
  }
} 

Make AppBar transparent and show background , Follow below example. Fullscreen page with transparent AppBar in Flutter, Make AppBar transparent and show background image which is Additional create an app bar with a custom back button (in this case with a FloatingActionButton ). In one of my android projects I have a need to add an ImageView below transparent toolbar in android so this is how I was able to achieve it. If you have work on adding ImageView underneath transparent toolbar in a different way to the solution I provided below kindly share your solution in the comment box.

Translucent SystemBars the right way — across API levels and , In case of dark theme the colorSurface will be dark/black. Because we will instead use AppBar to color the statusBar. We can be fully flexible with statusBar as we have the capability to make the status bar icons go dark. I have been working on an app which produces long exposure effect. As of now, we are almost ready with the free version of the app. For this, I got some feedback from some of the users. One of them said that we should make the action bar transparent and since it’s a camera app, it’d look great if it’s interface looked similar to that of Google Camera app. We are nowhere near that app

Handling Scrolls with CoordinatorLayout, Expanding or contracting the Toolbar or header space to make room for the main content. In this particular case, the AppBarLayout. Normally, the Toolbar only appears when the list is scrolled to the top as shown below: the status bar should be made translucent (API 19) or transparent (API 21) as shown in this file. For me, #FF000000 is the color black, whereas #000000FF is transparent. This tells me that the order of the values looks like this #AARRGGBB. This comment has been minimized.

Translucent and Transparent Background for Activity, of the previous activity. 2. To make the activity background translucent, give alpha to any color. Below we have given an alpha of 50 percent to black color. Same is the case in the translucent image. Based on the alpha of Bottom App Bar for Android - A Material Design Component � January 26, 2020. The app bar, also known as the action bar, is one of the most important design elements in your app's activities, because it provides a visual structure and interactive elements that are familiar to users.

Comments
  • Not only, i think i also need to set the background color to Colors.transparent
  • Above code has backgroundColor: Colors.transparent, thats why I am say also you need to add elevation. As you say not only, them needs to be combine. Thx
  • I think you should also set elevation of the AppBar to zero
  • It's up to you if u want to set it on zero or not