I've been having this issue recently,
When Using
class _LoginPageState extends State<LoginPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
RaisedButton(onPressed: (){}, child: Text('please'),),
RaisedButton(onPressed: (){}, child: Text('center'),)
],
),
);
}
}
Results in the children widgets aligning to the left
screenshot
Any help would be appreciated
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…