Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qmsd-flutter-user-feedback
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PublicSource
qmsd-flutter-user-feedback
Commits
13af57bd
Commit
13af57bd
authored
Apr 11, 2023
by
tongzifang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加 source_type
parent
48712b41
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
+10
-4
README.md
README.md
+1
-1
user_feedback_client.dart
lib/request/user_feedback_client.dart
+1
-0
user_feedback_client.g.dart
lib/request/user_feedback_client.g.dart
+2
-0
user_feedback_page.dart
lib/user_feedback_page.dart
+6
-3
No files found.
README.md
View file @
13af57bd
...
@@ -4,5 +4,5 @@
...
@@ -4,5 +4,5 @@
## Getting Started
## Getting Started
flutter pub run build_runner build --delete-conflicting-outputs
lib/request/user_feedback_client.dart
View file @
13af57bd
...
@@ -19,6 +19,7 @@ abstract class UserFeedbackClient {
...
@@ -19,6 +19,7 @@ abstract class UserFeedbackClient {
Future
<
BaseEntity
>
subFeedBack
(
Future
<
BaseEntity
>
subFeedBack
(
@Field
(
'type'
)
int
type
,
@Field
(
'type'
)
int
type
,
@Field
(
'content'
)
String
content
,
@Field
(
'content'
)
String
content
,
@Field
(
'source_type'
)
String
source_type
,
@Field
(
'pictures'
)
List
<
String
>
pictures
,
@Field
(
'pictures'
)
List
<
String
>
pictures
,
{
@Field
(
'source'
)
int
source
=
2
});
{
@Field
(
'source'
)
int
source
=
2
});
}
}
lib/request/user_feedback_client.g.dart
View file @
13af57bd
...
@@ -22,6 +22,7 @@ class _UserFeedbackClient implements UserFeedbackClient {
...
@@ -22,6 +22,7 @@ class _UserFeedbackClient implements UserFeedbackClient {
Future
<
BaseEntity
>
subFeedBack
(
Future
<
BaseEntity
>
subFeedBack
(
type
,
type
,
content
,
content
,
source_type
,
pictures
,
{
pictures
,
{
source
=
2
,
source
=
2
,
})
async
{
})
async
{
...
@@ -31,6 +32,7 @@ class _UserFeedbackClient implements UserFeedbackClient {
...
@@ -31,6 +32,7 @@ class _UserFeedbackClient implements UserFeedbackClient {
final
_data
=
{
final
_data
=
{
'type'
:
type
,
'type'
:
type
,
'content'
:
content
,
'content'
:
content
,
'source_type'
:
source_type
,
'pictures'
:
pictures
,
'pictures'
:
pictures
,
'source'
:
source
,
'source'
:
source
,
};
};
...
...
lib/user_feedback_page.dart
View file @
13af57bd
...
@@ -7,7 +7,6 @@ import 'package:base_data_channel/data/common_up_img_entity.dart';
...
@@ -7,7 +7,6 @@ import 'package:base_data_channel/data/common_up_img_entity.dart';
import
'package:base_data_channel/request/common_client.dart'
;
import
'package:base_data_channel/request/common_client.dart'
;
import
'package:base_data_channel/utils/page_utils.dart'
;
import
'package:base_data_channel/utils/page_utils.dart'
;
import
'package:base_data_channel/utils/toast_utils.dart'
;
import
'package:base_data_channel/utils/toast_utils.dart'
;
import
'package:cached_network_image/cached_network_image.dart'
;
import
'package:dotted_border/dotted_border.dart'
;
import
'package:dotted_border/dotted_border.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:image_picker/image_picker.dart'
;
import
'package:image_picker/image_picker.dart'
;
...
@@ -422,8 +421,12 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
...
@@ -422,8 +421,12 @@ class _UserFeedBackPageState extends State<UserFeedBackPage> {
await
_uploadImg
(
element
).
then
((
value
)
=>
urls
.
add
(
value
));
await
_uploadImg
(
element
).
then
((
value
)
=>
urls
.
add
(
value
));
}
}
}
}
BaseEntity
model
=
await
UserFeedbackClient
()
BaseEntity
model
=
await
UserFeedbackClient
().
subFeedBack
(
.
subFeedBack
(
_feedType
,
_controller
.
text
,
urls
);
_feedType
,
_controller
.
text
,
Platform
.
operatingSystem
,
urls
,
);
subStatus
=
model
.
status
;
subStatus
=
model
.
status
;
if
(
subStatus
==
true
)
{
if
(
subStatus
==
true
)
{
// QmToast.toast("提交成功!");
// QmToast.toast("提交成功!");
...
...
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