Flutter position stack widget in center. Use the below example to add flutter position stack widget in center.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | Align( alignment: Alignment.bottomCenter, child: new ButtonBar( alignment: MainAxisAlignment.center, children: <Widget>[ new OutlineButton( onPressed: () { Navigator.push( context, new MaterialPageRoute( builder: (context) => new LoginPage())); }, child: new Text( "Login", style: new TextStyle(color: Colors.white), ), ), new RaisedButton( color: Colors.white, onPressed: () { Navigator.push( context, new MaterialPageRoute( builder: (context) => new RegistrationPage())); }, child: new Text( "Register", style: new TextStyle(color: Colors.black), ), ) ], ), ) |
In my theory, the additional Container is destroying it. I would advice you to just surround this by adding padding:
1 2 3 4 | Padding( padding: EgdeInsets.only(bottom: 20.0), child: Align... ), |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.