小部件颤动以坚持向左和向右
widget flutter to sticking to left, and right
我有这个插件代码
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Container(alignment: Alignment.topLeft, child: BtnPoin()),
Container(alignment: Alignment.topRight, child: BtnFilter()),
],
),
我可以把BtnPoin()
放在左边,蚂蚁BtnFilter()
放在右边吗
这是我的图片参考
Reference
你试过吗?
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
BtnPoin(),
BtnFilter(),
],
),
试试这个:
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
BtnPoin(),
Spacer(),
BtnFilter(),
],
),
我有这个插件代码
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Container(alignment: Alignment.topLeft, child: BtnPoin()),
Container(alignment: Alignment.topRight, child: BtnFilter()),
],
),
我可以把BtnPoin()
放在左边,蚂蚁BtnFilter()
放在右边吗
这是我的图片参考
Reference
你试过吗?
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
BtnPoin(),
BtnFilter(),
],
),
试试这个:
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
BtnPoin(),
Spacer(),
BtnFilter(),
],
),