我还是个新手,不知道如何对齐我的一个包含图片的子控件.这就是我到目前为止所try 的:
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.username),
backgroundColor: new Color(0xFF24292E),
),
body: Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Image.asset(
'assets/profile.png', width: 100.0, height: 100.0,
),
],
),
),
);
}
然而,图像仍停留在屏幕的中央和顶部.如何将其移动到相对于屏幕的左上角?谢谢