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
Request for left-aligned floating Action Button #15122
In making a demo app to get a grasp of Flutter, I wanted to add an additional action button on the opposite side of the screen (Floating Action Buttons are placed at the bottom right). I request the support for a button to be situated on the bottom left (inline with the right button).
@zoechi Your code is not working for me. However, I feel like this option should be granted as startFloat and startDocked instead of looking up the text direction. I think that end should just be the left for RTL by default, but start should be added as well. This way the developer can position the button freely and the user has a customized position based on their layout orientation.
Additionaly, I think that leftFloating, rightFloating etc. should be implemented as well because you might not want your FAB to change position if the rest of your layout is not adaptive as well (there are other reason for this too: it is just nice to have control easily).
Bumping this one. In my opinion apps should consider left and right-hand holding positions for users, where a startFloat or startDocked would allow users to use left thumb to access the button (based on app preferences, since the orientation cannot be sensed).
I am aware this is not fully in line with Material design ;)
Reacted by creativecreatorormaybenot, Evgeny, dazza5000 and trqalothman
Using "add reaction" on the initial comment would increase priority while +1 comments are rather pointless and cause lots of people to get notified for no reason.
To get notified yourself use the [Subscribe] button to the top right instead.
Making a floating action button go left is only possible if we use a row widget at the end with fabs as children, but we need to assign the mainAxisAlignment: MainAxisAlignment.spaceBetween between a fab and a padding
I have to agree, it is pretty weird and seems unfinished. FloatingActionButtonLocation allows positioning in the top left or right, but only the bottom right? Surely an oversight and not intentional...?
Reacted by Attawit Kedkaew, 🐧🐧🐧, Jacob and Gregory Staniszewski
FloatingActionButtonLocation.startUp and FloatingActionButtonLocation.endTop are currently align vertically center and it's misleading, I think instead should push it upwards.
The PR #51465 is merged.
You can now set the floatingActionButtonLocation of your Scaffold to FloatingActionButtonLocation.startFloat to create a FAB in the lower-left corner of the scaffold.
We did not implement support for multiple FABs on the same scaffold, as this is against Material guidelines.
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
Ashad98 commentedon Apr 29, 2018
I am Also facing the same problem.
i cannot create a floating action button on bottom left side.
zoechi commentedon Apr 29, 2018
What does this mean exactly
Did you check https://docs.flutter.io/flutter/material/Scaffold/floatingActionButtonLocation.html
With a custom
flutter/packages/flutter/lib/src/material/floating_action_button_location.dart
Lines 120 to 155 in cb3df70
Ashad98 commentedon May 25, 2018
i was also facing the same problem try this code
zoechi commentedon May 25, 2018
@Ashad98 please edit your comment and wrap code in ```
What about my suggestion above?
Ashad98 commentedon May 30, 2018
Thank You for editing my code
ThinkDigitalSoftware commentedon Jul 10, 2018
I would like this built in as well, it only makes sense to have the third option.
creativecreatorormaybenot commentedon Aug 10, 2018
@zoechi Your code is not working for me. However, I feel like this option should be granted as
startFloatandstartDockedinstead of looking up the text direction. I think that end should just be the left for RTL by default, but start should be added as well. This way the developer can position the button freely and the user has a customized position based on their layout orientation.Additionaly, I think that
leftFloating,rightFloatingetc. should be implemented as well because you might not want yourFABto change position if the rest of your layout is not adaptive as well (there are other reason for this too: it is just nice to have control easily).ThinkDigitalSoftware commentedon Aug 10, 2018
Arno-Z commentedon Jan 25, 2019
Bumping this one. In my opinion apps should consider left and right-hand holding positions for users, where a startFloat or startDocked would allow users to use left thumb to access the button (based on app preferences, since the orientation cannot be sensed).
I am aware this is not fully in line with Material design ;)
zoechi commentedon Jan 27, 2019
Using "add reaction" on the initial comment would increase priority while
+1comments are rather pointless and cause lots of people to get notified for no reason.To get notified yourself use the [Subscribe] button to the top right instead.
ariG23498 commentedon Feb 15, 2019
Making a floating action button go left is only possible if we use a row widget at the end with fabs as children, but we need to assign the
mainAxisAlignment: MainAxisAlignment.spaceBetweenbetween a fab and a paddingpsyanite commentedon Mar 2, 2019
I'd like to implement a FAB on the left that acts like a "go back" button on my app :) thank you contributors!!!
leapit commentedon May 15, 2019
Use Expanded between two buttons seems better
PrakashJagan commentedon Jul 23, 2019
You can use padding only for left alignment like this...
hasen6 commentedon Aug 21, 2019
I have to agree, it is pretty weird and seems unfinished.
FloatingActionButtonLocationallows positioning in the top left or right, but only the bottom right? Surely an oversight and not intentional...?dieudv commentedon Sep 17, 2019
FloatingActionButtonLocation.startUp and FloatingActionButtonLocation.endTop are currently align vertically center and it's misleading, I think instead should push it upwards.
im-amir commentedon Jan 14, 2020
Still, there is no solution. Please, resolve this issue
pennzht commentedon Jan 27, 2020
I am working on this.
pennzht commentedon Apr 25, 2020
The PR #51465 is merged.
You can now set the
floatingActionButtonLocationof yourScaffoldtoFloatingActionButtonLocation.startFloatto create a FAB in the lower-left corner of the scaffold.We did not implement support for multiple FABs on the same scaffold, as this is against Material guidelines.
github-actions commentedon Aug 21, 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.