fix: Move unread badge under the back button in chat view

This commit is contained in:
Christian Pauly 2022-08-21 07:43:59 +02:00
parent c31411ce33
commit 9190c7879b

View File

@ -17,7 +17,6 @@ class UnreadBadgeBackButton extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Stack( return Stack(
children: [ children: [
const Center(child: BackButton()),
StreamBuilder( StreamBuilder(
stream: Matrix.of(context).client.onSync.stream, stream: Matrix.of(context).client.onSync.stream,
builder: (context, _) { builder: (context, _) {
@ -52,6 +51,7 @@ class UnreadBadgeBackButton extends StatelessWidget {
) )
: Container(); : Container();
}), }),
const Center(child: BackButton()),
], ],
); );
} }