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
Reacted by Omar Hussein, Thangmam, ikiorium, Andrew Bash, Vamsi Krishna, Mohamed Khennoussi, Spareblock, ThinkSimple, ahujaraghav, Daniel Felten and 21 more
@VladyslavBondarenko Thanks for referring the mere same stuff.
It works but has some stability issues like this code doesn't work effectively when page view items dynamically change.
Hi @VladyslavBondarenko , I want to create PR for this issue. I check out the source code and I saw there is a SliverFillViewport widget that maybe we can wrap it with align. do you have any idea about how can I solve this?
Reacted by ThinkSimple, Daniel Felten, Ilya Iksent, riccardo, Philipp Cherubim, Matheus Martins, Andrew Bash, Benevides, Vladislav, Yasin Arık and 4 more
I've run into this issue when trying to implement a dynamically-sized TabController and TabBarView interface. In other words, an app organised into different tabs, where the user can add and remove tabs at runtime.
Most StackOverflow answers say to use PageController and PageView instead. But in order to implement a TabBar equivalent, you need to use another PageView synchronised with the main content PageView. The viewportFraction then needs to be less than 1.0 to see multiple tabs on the same page. If the PageView cannot be left-aligned, implementing this becomes significantly more difficult.
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
VladyslavBondarenko commentedon Mar 5, 2020
Hi @vivekkannavenus
Among similar I found only this https://stackoverflow.com/questions/56871898/align-a-flutter-pageview-to-the-screen-left
There is gist in the solution, where I can change align by editing value in the line
final portion = (position.extentInside - itemDimension) / 2;But this is another case, not about
PageControllerwithviewportFractionvivekkannavenus commentedon Mar 5, 2020
@VladyslavBondarenko Thanks for referring the mere same stuff.
It works but has some stability issues like this code doesn't work effectively when page view items dynamically change.
yousifk commentedon May 31, 2020
It is helpful to add this feature.
payam-zahedi commentedon Aug 8, 2020
Hi @VladyslavBondarenko , I want to create PR for this issue. I check out the source code and I saw there is a SliverFillViewport widget that maybe we can wrap it with align. do you have any idea about how can I solve this?
spareblock commentedon Aug 29, 2020
Any update on this?
ScottMacDougall commentedon Oct 3, 2020
Would love to see this addressed.
PaulVinSoft249 commentedon Oct 5, 2020
I have a solution for this... Would be happy to share... PR
PaulVinSoft249 commentedon Oct 9, 2020
Dariel-G commentedon Oct 27, 2020
@PaulVinSoft249 Can you share the solution for alignin pageview to the left side?
edemekong commentedon Oct 30, 2020
@Dariel11
Yes bro,
I will be writing a PR on this. But anyway I can share it.
edemekong commentedon Oct 30, 2020
https://gist.github.com/hello-paulvin/0aa8b6389e3aeb345fa1f3f246d9ab69#file-gistfile1-txt
You can open that and check it out :)
divid3d commentedon Dec 16, 2020
Is there option to align to the left last item same as previous?
harrisonturton commentedon Mar 11, 2021
I've run into this issue when trying to implement a dynamically-sized
TabControllerandTabBarViewinterface. In other words, an app organised into different tabs, where the user can add and remove tabs at runtime.Most StackOverflow answers say to use
PageControllerandPageViewinstead. But in order to implement aTabBarequivalent, you need to use anotherPageViewsynchronised with the main contentPageView. TheviewportFractionthen needs to be less than1.0to see multiple tabs on the same page. If thePageViewcannot be left-aligned, implementing this becomes significantly more difficult.uzuki-P commentedon May 2, 2021
Any update on this?
daixianceng commentedon May 11, 2021
padEnds还不能用啊srikanth-vm commentedon Jun 3, 2021
padEnds on which widget ? I don't see that option on page view.
github-actions commentedon Jul 31, 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.