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
8e8e93f9
Commit
8e8e93f9
authored
Jul 07, 2023
by
netyouli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化base64字符串图片显示判断
parent
5f6dedde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lib/pages/ai-draw-image-result/controller.dart
lib/pages/ai-draw-image-result/controller.dart
+1
-2
No files found.
lib/pages/ai-draw-image-result/controller.dart
View file @
8e8e93f9
...
...
@@ -212,8 +212,7 @@ class AIDrawImageResultController extends GetxController {
imageUrl
.
value
=
model
.
progressImageUrl
??
""
;
}
if
(
progressBase64
.
isNotEmpty
)
{
final
array
=
progressBase64
.
replaceAll
(
'
\n
'
,
''
).
split
(
','
);
final
decode
=
base64Decode
(
array
.
last
);
final
decode
=
base64Decode
(
progressBase64
.
replaceAll
(
'
\n
'
,
''
));
placehoderImageData
=
imageData
.
value
??
decode
;
imageData
.
value
=
decode
;
}
else
{
...
...
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