You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using a Row in FlexibleSpaceBar inside a SliverAppBar #11954
Somewhat related to my other issue (#11951), I would like to use a Row as the "title" Widget of a FlexibleSpaceBar inside a SliverAppBar. I would like to have an Image and a Text inside this row (with some padding), but if I do that, it won't animate correctly when scrolling. On iOS, it completely breaks the animation, on Android, it positions the Row incorrectly when collapsed to normal Toolbar height. I can see that it tries to maintain the same bottom padding which is ideal for a single Text (I understand that it was intentionally to optimize for a Text) but not looks good when something larger is contained.
I think that having a parameter to set the bottom padding which is applied to the Widget that is supplied as the title would enable more creative designs, including the one I would like to achieve. As far as I know I could not make it work even if I subclass the SliverAppBar as it uses private classes inside.
Please let me know if the thing that I described is possible (and how), or if you may implement something I asked in the future.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
Hixie commentedon May 18, 2018
Do you have a sample
main.dartshowing what you mean so we can play with it?Hixie commentedon May 18, 2018
cc @HansMuller
TahaTesser commentedon Mar 24, 2020
Hi @balazsgerlei
Please checkout this sample
Code Sample
We can use row in title
if you disagree please write in the comments and I will reopen it
Thank you
yassine12you commentedon Apr 23, 2020
you must center your row
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
Best regards
github-actions commentedon Aug 17, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.