skm
skm

Reputation: 609

Display permanent Widget under AppBar in Flutter

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.

Upvotes: 0

Views: 684

Answers (1)

Md. Yeasin Sheikh
Md. Yeasin Sheikh

Reputation: 63559

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)],
            )
          ],
        ),
      ),

Upvotes: 1

Related Questions