1
I’m trying to put a column inside another column, but I wonder if there’s any way to ignore the first alignment, as in the code below:
class Login extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Column(
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
Text("Create an account")
],
)
],
));
}
}
As my Text Widget is inside a centralized main Column, I cannot apply Mainaxisalignment.end.
I would like to force the Widget to the bottom position.
Puts the two as end, but if there’s nothing else inside the second Column uses only one and puts as end.
– GabrielLocalhost
What’s happening is that it must be aligned at the end but as the other is at the center it is filling. Put the crossAxisAlignment: Crossaxisalignment.stretch, from the inside.
– GabrielLocalhost
Puts Text inside a Container and aligns right.
– Edeson Bizerril