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
Gallery SliverAppBar Text better centered under iOS theme than Android. #9212
Seems to be TextAlign issue with SliverAppBar from home.dart in flutter_gallery example. The Android text is missing when the iOS theme is applied.
If i input 'title: new Text('Animate Slowly ----real slowly'), ' in line 173 of home.dart then it's enough to fill up the page width under the iOS theme but it's clearly not visible when under Android theme. The text is not centered and characters are missing.
I'm not sure if I could adjust this line with something like CenterAlign, whether it's related to FlexibleSpaceBar, or other theme files. I don't have an iphone to check.
Here are some shots with the theme changing the text alignment;
Sorry guys, the actual code i have; flexibleSpace: new FlexibleSpaceBar( title: new Text('Flut home SliverAppBar ---'), //main page banner bottom txt, doesn't wrap // TODO(abarth): Wire up to the parallax in a way that doesn't pop during hero transition.
You can see from the photos that about 6 characters are missing.
Ah, was about to raise a similar issue.
It seems that, on Android, the title is always allowing for the potential of a menu button. At least that's my assumption. I don't have one and I'd like the space back!
Lines 143-5 of flexible_space_bar.dart show a 72.0 which I believe is the space.
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
eseidelGoogle commentedon Apr 5, 2017
@HansMuller might know.
lubi888 commentedon Apr 5, 2017
Sorry guys, the actual code i have;
flexibleSpace: new FlexibleSpaceBar(title: new Text('Flut home SliverAppBar ---'), //main page banner bottom txt, doesn't wrap// TODO(abarth): Wire up to the parallax in a way that doesn't pop during hero transition.You can see from the photos that about 6 characters are missing.
If you need any logs or outputs just let me know.
davidamey commentedon Aug 2, 2017
Ah, was about to raise a similar issue.
It seems that, on Android, the title is always allowing for the potential of a menu button. At least that's my assumption. I don't have one and I'd like the space back!
Lines 143-5 of
flexible_space_bar.dartshow a72.0which I believe is the space.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.