Commit e546f5a7 authored by netyouli's avatar netyouli

修复生成图片tags布局显示问题

parent da766a3e
......@@ -56,30 +56,32 @@ class AIDrawImageResultPage extends GetView<AIDrawImageResultController> {
Widget makeBottomButtonsView() {
return Container(
padding: EdgeInsets.fromLTRB(20, 0, 20, 0),
height: 80,
child: GridView.count(
crossAxisCount: 4,
mainAxisSpacing: 10,
crossAxisSpacing: 10,
childAspectRatio: 5 / 2, // 设置按钮的宽高比
padding: const EdgeInsets.fromLTRB(20, 0, 20, 0),
height: 100,
child: SingleChildScrollView(
child: Wrap(
spacing: 8.0, // 水平间距
runSpacing: 8.0, // 垂直间距
alignment: WrapAlignment.start, //沿主轴方向居中
children: controller.bottomButtonTitles.value.map((e) {
return InkWell(
onTap: () {
controller.clickBottomButton(e);
},
child: Container(
height: 35,
width: (Get.width - 40 - 24) / 4.0,
padding: const EdgeInsets.fromLTRB(10, 10, 10, 10),
alignment: Alignment.center,
decoration: BoxDecoration(
color: AppColor.gray3,
borderRadius: BorderRadius.circular(5)
),
child: Text(e),
),
)
);
}).toList(),
),
),
);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment