Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
ChatGPT
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
关振斌
ChatGPT
Commits
e546f5a7
Commit
e546f5a7
authored
Jul 18, 2023
by
netyouli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复生成图片tags布局显示问题
parent
da766a3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
lib/pages/ai-draw-image-result/view.dart
lib/pages/ai-draw-image-result/view.dart
+11
-9
No files found.
lib/pages/ai-draw-image-result/view.dart
View file @
e546f5a7
...
@@ -56,30 +56,32 @@ class AIDrawImageResultPage extends GetView<AIDrawImageResultController> {
...
@@ -56,30 +56,32 @@ class AIDrawImageResultPage extends GetView<AIDrawImageResultController> {
Widget
makeBottomButtonsView
()
{
Widget
makeBottomButtonsView
()
{
return
Container
(
return
Container
(
padding:
EdgeInsets
.
fromLTRB
(
20
,
0
,
20
,
0
),
padding:
const
EdgeInsets
.
fromLTRB
(
20
,
0
,
20
,
0
),
height:
8
0
,
height:
10
0
,
child:
GridView
.
count
(
child:
SingleChildScrollView
(
c
rossAxisCount:
4
,
c
hild:
Wrap
(
mainAxisSpacing:
10
,
spacing:
8.0
,
// 水平间距
crossAxisSpacing:
10
,
runSpacing:
8.0
,
// 垂直间距
childAspectRatio:
5
/
2
,
// 设置按钮的宽高比
alignment:
WrapAlignment
.
start
,
//沿主轴方向居中
children:
controller
.
bottomButtonTitles
.
value
.
map
((
e
)
{
children:
controller
.
bottomButtonTitles
.
value
.
map
((
e
)
{
return
InkWell
(
return
InkWell
(
onTap:
()
{
onTap:
()
{
controller
.
clickBottomButton
(
e
);
controller
.
clickBottomButton
(
e
);
},
},
child:
Container
(
child:
Container
(
height:
35
,
width:
(
Get
.
width
-
40
-
24
)
/
4.0
,
padding:
const
EdgeInsets
.
fromLTRB
(
10
,
10
,
10
,
10
),
alignment:
Alignment
.
center
,
alignment:
Alignment
.
center
,
decoration:
BoxDecoration
(
decoration:
BoxDecoration
(
color:
AppColor
.
gray3
,
color:
AppColor
.
gray3
,
borderRadius:
BorderRadius
.
circular
(
5
)
borderRadius:
BorderRadius
.
circular
(
5
)
),
),
child:
Text
(
e
),
child:
Text
(
e
),
)
,
)
);
);
}).
toList
(),
}).
toList
(),
),
),
),
);
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment