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
518c7755
Commit
518c7755
authored
Jul 17, 2023
by
netyouli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复图片广场显示问题
parent
5e105725
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
lib/pages/ai-draw-image/controller.dart
lib/pages/ai-draw-image/controller.dart
+2
-1
lib/pages/ai-draw-image/view.dart
lib/pages/ai-draw-image/view.dart
+2
-1
No files found.
lib/pages/ai-draw-image/controller.dart
View file @
518c7755
...
...
@@ -23,6 +23,7 @@ import 'model.dart';
class
AIDrawImageController
extends
GetxController
{
late
TabController
tabController
;
late
TabController
categoryController
;
var
currentIndex
=
0
;
ScrollController
textToImageController
=
ScrollController
(
initialScrollOffset:
0
);
var
model
=
AIDrawTextToImageModel
();
...
...
lib/pages/ai-draw-image/view.dart
View file @
518c7755
...
...
@@ -110,9 +110,10 @@ class AIDrawImagePage extends GetView<AIDrawImageController> {
});
controller
.
tabController
=
tabController
;
tabController
.
addListener
(()
{
if
(
tabController
.
index
==
2
)
{
if
(
tabController
.
index
==
2
&&
controller
.
currentIndex
!=
tabController
.
index
)
{
controller
.
requestSquareImages
();
}
controller
.
currentIndex
=
tabController
.
index
;
});
return
Column
(
children:
[
...
...
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