About 328,000 results
Open links in new tab
  1. dart - How to fill the row with two buttons? - Stack Overflow

    May 2, 2019 · Wrap each Button in a Container and use the screen width to determine the width of each Container. MediaQuery.of (context).size.width*0.7 as the width of the Container.

  2. How to create 2 buttons in a row in Flutter? - Stack Overflow

    Sep 4, 2020 · I have stateless widget MainPage: class MainPage extends StatelessWidget { @override Widget build(BuildContext context) { return Center( child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Person(), History() ], ), ); } } And I have 2 buttons: Person and History There is classes Person and History: class Person extends ...

  3. How to fit two button within a row ? Flutter - Stack Overflow

    Apr 14, 2022 · What i would suggest is to avoid using FloatingActionButton () inside the scaffold body since you can add it on scaffold floatingActionButton property. You can follow the answer below but try to utilize the Row properties (mainAxisAlignment & crossAxisAlignment) instead of Expanded Widget.

  4. How to Fit Two Buttons in a Row in Flutter - YouTube

    One common issue newcomers face is fitting multiple buttons within a single Row. This can be particularly tricky if you're not familiar with how Flutter manages widgets.

  5. How to Make Two Floating Action Button in Flutter? - Bosc Tech

    Jul 14, 2022 · You can use an elegant and neat FloatingActionButton widget if you need a single floating button. When you wish to add two floating buttons, you can opt for the stack, row, or column widget. Developers allot stack to the floating action button and present it as a two-position widget as children and make two floating actions easily.

  6. Flutter Toggle Buttons in Multiple Rows with Spacing and …

    Jan 24, 2021 · Wrapping an InkWell widget in a GridView widget does the trick! Let’s create a row of 3 toggle buttons with spacing and rounded corners: You can also have multiple rows of …

  7. How to create 2 buttons in a row in Flutter? – Flutter Fixes

    Issue I really don not understand what wrong and how to fix it I want to show 2 buttons on the screen in row I have stateless widget MainPage:

  8. flutter - How to create a row with 2 buttons that take up the …

    Feb 20, 2022 · How can I create a row w/2 buttons that, together, take up the space of their parent (the row)? I want to place this row immediately above the bottom navigation bar at times and then at other times I want it to take the place of the bottom navigation bar.

  9. 2 Ways to Add Multiple Floating Buttons in Flutter (updated)

    This article shows you a couple of different ways to add multiple floating buttons to a single screen in Flutter. The Scaffold widget has a parameter named floatingActionButton that can take not only the FloatingActionButton widget but also other widgets.

  10. Learn Flutter: Make buttons in a row have the same width in Flutter

    Mar 18, 2024 · In Flutter, you can ensure that buttons in a row have the same width by wrapping them with the Expanded widget. Here's an example demonstrating how to achieve this:

  11. Some results have been removed
Refresh