Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Q
queue_flutter
Project
Project
Details
Activity
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
Ernanda
queue_flutter
Commits
13fbc011
Commit
13fbc011
authored
Mar 02, 2022
by
valdi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix clear data
parent
5348844d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
main_page.dart
lib/main_page.dart
+3
-2
pubspec.lock
pubspec.lock
+7
-0
pubspec.yaml
pubspec.yaml
+2
-2
No files found.
lib/main_page.dart
View file @
13fbc011
...
@@ -103,7 +103,8 @@ class _MainPageState extends State<MainPage> {
...
@@ -103,7 +103,8 @@ class _MainPageState extends State<MainPage> {
Future
setToClear
()
async
{
Future
setToClear
()
async
{
// print(readySelected);
// print(readySelected);
var
apiUrl
=
apiUrlClear
;
var
apiUrl
=
apiUrlClear
;
var
apiResult
=
await
http
.
get
(
Uri
.
parse
(
apiUrl
));
print
(
apiUrl
);
var
apiResult
=
await
http
.
post
(
Uri
.
parse
(
apiUrl
));
var
jsonObject
=
jsonDecode
(
apiResult
.
body
)[
'status'
];
var
jsonObject
=
jsonDecode
(
apiResult
.
body
)[
'status'
];
if
(
jsonObject
==
true
)
{
if
(
jsonObject
==
true
)
{
context
.
read
<
ReadyCubit
>().
getData
();
context
.
read
<
ReadyCubit
>().
getData
();
...
@@ -305,7 +306,7 @@ class _MainPageState extends State<MainPage> {
...
@@ -305,7 +306,7 @@ class _MainPageState extends State<MainPage> {
),
),
TextButton
(
TextButton
(
onPressed:
()
=>
onPressed:
()
=>
Navigator
.
pop
(
context
,
setToClear
),
Navigator
.
pop
(
context
,
setToClear
()
),
child:
Text
(
'OK'
),
child:
Text
(
'OK'
),
),
),
],
],
...
...
pubspec.lock
View file @
13fbc011
...
@@ -64,6 +64,13 @@ packages:
...
@@ -64,6 +64,13 @@ packages:
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "1.0.4"
version: "1.0.4"
draggable_scrollbar:
dependency: "direct main"
description:
name: draggable_scrollbar
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0"
equatable:
equatable:
dependency: "direct main"
dependency: "direct main"
description:
description:
...
...
pubspec.yaml
View file @
13fbc011
...
@@ -28,17 +28,17 @@ environment:
...
@@ -28,17 +28,17 @@ environment:
# versions available, run `flutter pub outdated`.
# versions available, run `flutter pub outdated`.
dependencies
:
dependencies
:
cupertino_icons
:
^1.0.2
cupertino_icons
:
^1.0.2
draggable_scrollbar
:
^0.1.0
equatable
:
^2.0.3
equatable
:
^2.0.3
flutter
:
flutter
:
sdk
:
flutter
sdk
:
flutter
flutter_bloc
:
^8.0.1
flutter_bloc
:
^8.0.1
http
:
^0.13.4
http
:
^0.13.4
loading_animations
:
^2.2.0
mqtt_client
:
^9.6.5
mqtt_client
:
^9.6.5
multi_select_flutter
:
^4.0.0
multi_select_flutter
:
^4.0.0
shared_preferences
:
^2.0.13
shared_preferences
:
^2.0.13
uuid
:
^3.0.6
uuid
:
^3.0.6
loading_animations
:
^2.2.0
dev_dependencies
:
dev_dependencies
:
flutter_lints
:
^1.0.0
flutter_lints
:
^1.0.0
...
...
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