How to place the children along the main axis in Flutter

0 votes
Hi Guys,

I have created one button in Flutter App. But the button is created at the top corner in my App. I want to place this button in the middle of the screen. How can I do that?
Sep 8, 2020 in Others by akhtar
• 38,230 points
288 views

1 answer to this question.

0 votes

Hi@akhtar,

If you are created the App with a Column or Row widget, then you can do this very easily. Here you can specify where you want to show your button. For example, if you want to place your button in the middle then you can use the below line.

Column(
              mainAxisAlignment: MainAxisAlignment.center,
)

To know more, join our Flutter Development Course today.

answered Sep 8, 2020 by MD
• 95,440 points

Related Questions In Others

0 votes
1 answer

How to change the project name in Flutter App?

Hi@akhtar, If you want to change the name ...READ MORE

answered Sep 3, 2020 in Others by MD
• 95,440 points
6,211 views
0 votes
1 answer

How to retrieve the value of a text field in Flutter App?

Hi@akhtar, In your TextField, you can call one ...READ MORE

answered Sep 3, 2020 in Others by MD
• 95,440 points
1,531 views
0 votes
1 answer

How to add Icon to the TextField in Flutter App?

Hi@akhtar, You can add any Icon to your ...READ MORE

answered Sep 3, 2020 in Others by MD
• 95,440 points
4,844 views
0 votes
2 answers

How to use the flat button in Flutter?

FlatButton is really easy to use. Where ever ...READ MORE

answered Nov 9, 2020 in Others by Vijay
• 200 points

edited Nov 9, 2020 by MD 3,836 views
0 votes
1 answer

What is the future of flutter?

Hi@MD, Flutter is a rather new cross-platform framework ...READ MORE

answered Jul 17, 2020 in Others by akhtar
• 38,230 points
932 views
0 votes
1 answer

What is Flutter?

Hi@akhtar, Flutter is an app SDK for building ...READ MORE

answered Jul 17, 2020 in Others by MD
• 95,440 points
1,093 views
0 votes
1 answer

How to install Flutter in Windows system?

Hi@akhtar, You can follow the below-given steps to ...READ MORE

answered Jul 17, 2020 in Others by MD
• 95,440 points
1,532 views
0 votes
1 answer

How to check the connected device name in Flutter?

Hi@akhtar, Flutter has its command own command to ...READ MORE

answered Jul 17, 2020 in Others by MD
• 95,440 points
7,299 views
0 votes
1 answer

How to change the background color of AppBar in Flutter?

Hi@akhtar, You can add backgroundColor keyword in your ...READ MORE

answered Aug 12, 2020 in Others by MD
• 95,440 points
1,831 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP