Display permanent Widget under AppBar in Flutter

525 Views Asked by At

I would like to implement small audio player controlls directly under the AppBar if an audio is playing. This can be seen in many apps like Telegram.

Example: enter image description here

How to realize that in Flutter? The Player has to be displayed on all Screens! Like a permanent, sticky one widget.

1

There are 1 best solutions below

2
Md. Yeasin Sheikh On

You can use toolbarHeight on AppBar to get extra spaces, and place Column(any widget based on your need) on title.

 appBar: AppBar(
        toolbarHeight: 100,
        title: Column(
          children: [
            Text("title"),
            Row(
              children: [Icon(Icons.ac_unit)],
            )
          ],
        ),
      ),