Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ifarm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TMP-2022-009
ifarm
Commits
2163a391
Commit
2163a391
authored
Nov 16, 2022
by
ayodyabanuka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated app
parent
c79d0ee2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
lib/AB/Screens/FoodBucket/SingleFoodBucketData.dart
lib/AB/Screens/FoodBucket/SingleFoodBucketData.dart
+19
-6
No files found.
lib/AB/Screens/FoodBucket/SingleFoodBucketData.dart
View file @
2163a391
import
'dart:async'
;
import
'package:firebase_database/firebase_database.dart'
;
import
'package:flutter/material.dart'
;
import
'package:fluttertoast/fluttertoast.dart'
;
import
'package:ifarm/AB/Utils/NotificationService.dart'
;
import
'package:liquid_progress_indicator/liquid_progress_indicator.dart'
;
import
'package:switcher_button/switcher_button.dart'
;
...
...
@@ -318,6 +319,7 @@ class _SingleFoodBucketDataState extends State<SingleFoodBucketData> {
offColor:
Colors
.
black
,
value:
svalue
,
onChange:
(
value
)
{
if
(
err
==
"2"
)
{
if
(
mounted
)
{
setState
(()
{
svalue
=
value
;
...
...
@@ -325,6 +327,17 @@ class _SingleFoodBucketDataState extends State<SingleFoodBucketData> {
updateone
(
value
);
print
(
value
);
});
}
else
if
(
err
==
"1"
)
{
Fluttertoast
.
showToast
(
msg:
"ERROR on bucket Please check!"
);
setState
(()
{
svalue
=
false
;
updateone
(
value
);
print
(
value
);
});
}
}
},
)
...
...
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