Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
StoreMonitor
Overview
Overview
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
Ramesh Babu Puvvadi
StoreMonitor
Commits
fff8be6c
Commit
fff8be6c
authored
Oct 06, 2023
by
Ramesh Babu Puvvadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added few changes
parent
9b8435fb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
19 deletions
+17
-19
CheckList.dart
lib/Screens/CheckList.dart
+1
-2
EmployeeReport.dart
lib/Screens/EmployeeReport.dart
+12
-11
FootFall.dart
lib/Screens/FootFall.dart
+4
-5
Home.dart
lib/Screens/Home.dart
+0
-1
No files found.
lib/Screens/CheckList.dart
View file @
fff8be6c
...
@@ -482,8 +482,7 @@ class _CheckList extends State<CheckList> {
...
@@ -482,8 +482,7 @@ class _CheckList extends State<CheckList> {
Navigator
.
pop
(
context
);
Navigator
.
pop
(
context
);
}
}
}
else
{
}
else
{
Constants
(
'CheckList'
,
'Enter Atleast one item'
)
Constants
(
'CheckList'
,
'Enter Atleast one item'
).
showAlertDialog
(
context
,
false
);
.
showAlertDialog
(
context
,
false
);
}
}
}
}
},
},
...
...
lib/Screens/EmployeeReport.dart
View file @
fff8be6c
...
@@ -8,8 +8,8 @@ import '../Services/RemoteData.dart';
...
@@ -8,8 +8,8 @@ import '../Services/RemoteData.dart';
import
'Constants.dart'
;
import
'Constants.dart'
;
class
EmployeeReport
extends
StatefulWidget
{
class
EmployeeReport
extends
StatefulWidget
{
String
message
;
final
String
message
;
EmployeeReport
({
super
.
key
,
required
this
.
message
});
const
EmployeeReport
({
super
.
key
,
required
this
.
message
});
@override
@override
State
<
EmployeeReport
>
createState
()
=>
_EmployeeReport
();
State
<
EmployeeReport
>
createState
()
=>
_EmployeeReport
();
...
@@ -27,6 +27,7 @@ class _EmployeeReport extends State<EmployeeReport> {
...
@@ -27,6 +27,7 @@ class _EmployeeReport extends State<EmployeeReport> {
int
registered
=
0
;
int
registered
=
0
;
int
unregistered
=
0
;
int
unregistered
=
0
;
int
total
=
0
;
int
total
=
0
;
@override
@override
void
initState
()
{
void
initState
()
{
super
.
initState
();
super
.
initState
();
...
@@ -373,6 +374,7 @@ class _EmployeeReport extends State<EmployeeReport> {
...
@@ -373,6 +374,7 @@ class _EmployeeReport extends State<EmployeeReport> {
),
),
);
);
}
}
void
showProgressDialog
(
BuildContext
context
)
{
void
showProgressDialog
(
BuildContext
context
)
{
// Capture the context in a local variable
// Capture the context in a local variable
BuildContext
dialogContext
=
context
;
BuildContext
dialogContext
=
context
;
...
@@ -392,13 +394,13 @@ class _EmployeeReport extends State<EmployeeReport> {
...
@@ -392,13 +394,13 @@ class _EmployeeReport extends State<EmployeeReport> {
if
(
await
Constants
.
checkInternetConnectivity
())
{
if
(
await
Constants
.
checkInternetConnectivity
())
{
showProgressDialog
(
context
);
showProgressDialog
(
context
);
// showDialog(
// showDialog(
//
context: context,
// context: context,
//
builder: (context) {
// builder: (context) {
//
return const Center(
// return const Center(
//
child: CircularProgressIndicator(
// child: CircularProgressIndicator(
//
color: Color.fromARGB(255, 173, 57, 230),
// color: Color.fromARGB(255, 173, 57, 230),
//
));
// ));
//
});
// });
Map
<
String
,
dynamic
>
body
=
{
Map
<
String
,
dynamic
>
body
=
{
'STORE'
:
selectedDropdownItem
!,
'STORE'
:
selectedDropdownItem
!,
...
@@ -427,8 +429,7 @@ class _EmployeeReport extends State<EmployeeReport> {
...
@@ -427,8 +429,7 @@ class _EmployeeReport extends State<EmployeeReport> {
});
});
}
else
{
}
else
{
Navigator
.
of
(
context
).
pop
();
Navigator
.
of
(
context
).
pop
();
Constants
(
'Employee Report'
,
'Please check your internet connection'
)
Constants
(
'Employee Report'
,
'Please check your internet connection'
).
showAlertDialog
(
context
,
false
);
.
showAlertDialog
(
context
,
false
);
}
}
}
}
}
}
lib/Screens/FootFall.dart
View file @
fff8be6c
...
@@ -14,8 +14,6 @@ class FootFall extends StatefulWidget {
...
@@ -14,8 +14,6 @@ class FootFall extends StatefulWidget {
const
FootFall
(
const
FootFall
(
{
super
.
key
,
required
this
.
message
,
required
this
.
selecteddate
});
{
super
.
key
,
required
this
.
message
,
required
this
.
selecteddate
});
//const Home({super.key});
@override
@override
_FootFall
createState
()
=>
_FootFall
();
_FootFall
createState
()
=>
_FootFall
();
}
}
...
@@ -29,13 +27,13 @@ class _FootFall extends State<FootFall> {
...
@@ -29,13 +27,13 @@ class _FootFall extends State<FootFall> {
List
<
String
>?
storesList
;
List
<
String
>?
storesList
;
//var graph = """<!DOCTYPE html>\n<html>\n<script type=\"text/javascript\" src=\"https://www.gstatic.com/charts/loader.js\"></script>\n\n<body>\n<div id=\"Employees\" style=\"width:50%; max-width:150px; height:50px;\"></div>\n\n<script>\ngoogle.charts.load('current', {'packages':['corechart']});\ngoogle.charts.setOnLoadCallback(drawChart);\n\nfunction drawChart() {\n var data = google.visualization.arrayToDataTable([\n ['TIME OF DAY', 'MALE',{ role: 'annotation'},'FEMALE',{ role: 'annotation'},],\n['10-11', 8, '8', 19, '19'], ['11-12', 12, '12', 21, '21'], ['12-13', 18, '18', 13, '13'], ['13-14', 17, '17', 14, '14'], ['14-15', 10, '10', 20, '20'], ['15-16', 8, '8', 21, '21'], ['16-17', 11, '11', 19, '19'], ['17-18', 12, '12', 13, '13'], ['18-19', 13, '13', 16, '16'], ['19-20', 8, '8', 22, '22'], ['20-21', 14, '14', 15, '15'], ['21-22', 7, '7', 17, '17'],\n \n ]);\n\n var options = {\n \t \n \t \n legend:'top',\n chartArea:{left:30,bottom:50,top:40,width:\"90%\",height:\"50%\"},\n width:1080,\n height:800,\n \n colors: ['#65d9eb', '#e263eb'],\n hAxis:{\n title:'---- Time of Day ----',\n titleTextStyle:{\n\t\t\t fontSize: 18,\n bold: true,},\n }, \n vAxis:{\n \t\t fontSize: 18,\n bold:true,\n title:'Footfall --->',\n \n titleTextStyle:{\n\t\t\t fontSize: 18,\n bold: true,},},\n annotations:{\n alwaysOutside: false,\n highContrast: true, // default is true, but be sure\n textStyle: {\n \tfontSize: 14,\n bold: true\n } \n\n },\n\n\n };\n\n var chart = new google.visualization.AreaChart(document.getElementById('Employees'));\n chart.draw(data, options);\n }\n</script>\n\n</body>\n</html>\n""";
//var graph = """<!DOCTYPE html>\n<html>\n<script type=\"text/javascript\" src=\"https://www.gstatic.com/charts/loader.js\"></script>\n\n<body>\n<div id=\"Employees\" style=\"width:50%; max-width:150px; height:50px;\"></div>\n\n<script>\ngoogle.charts.load('current', {'packages':['corechart']});\ngoogle.charts.setOnLoadCallback(drawChart);\n\nfunction drawChart() {\n var data = google.visualization.arrayToDataTable([\n ['TIME OF DAY', 'MALE',{ role: 'annotation'},'FEMALE',{ role: 'annotation'},],\n['10-11', 8, '8', 19, '19'], ['11-12', 12, '12', 21, '21'], ['12-13', 18, '18', 13, '13'], ['13-14', 17, '17', 14, '14'], ['14-15', 10, '10', 20, '20'], ['15-16', 8, '8', 21, '21'], ['16-17', 11, '11', 19, '19'], ['17-18', 12, '12', 13, '13'], ['18-19', 13, '13', 16, '16'], ['19-20', 8, '8', 22, '22'], ['20-21', 14, '14', 15, '15'], ['21-22', 7, '7', 17, '17'],\n \n ]);\n\n var options = {\n \t \n \t \n legend:'top',\n chartArea:{left:30,bottom:50,top:40,width:\"90%\",height:\"50%\"},\n width:1080,\n height:800,\n \n colors: ['#65d9eb', '#e263eb'],\n hAxis:{\n title:'---- Time of Day ----',\n titleTextStyle:{\n\t\t\t fontSize: 18,\n bold: true,},\n }, \n vAxis:{\n \t\t fontSize: 18,\n bold:true,\n title:'Footfall --->',\n \n titleTextStyle:{\n\t\t\t fontSize: 18,\n bold: true,},},\n annotations:{\n alwaysOutside: false,\n highContrast: true, // default is true, but be sure\n textStyle: {\n \tfontSize: 14,\n bold: true\n } \n\n },\n\n\n };\n\n var chart = new google.visualization.AreaChart(document.getElementById('Employees'));\n chart.draw(data, options);\n }\n</script>\n\n</body>\n</html>\n""";
@override
@override
void
initState
()
{
void
initState
()
{
super
.
initState
();
super
.
initState
();
isMeeters
=
widget
.
message
;
isMeeters
=
widget
.
message
;
loadData
();
loadData
();
//
_selectedDate
= DateTime.now();
//
_selectedDate
= DateTime.now();
String
dateString
=
widget
.
selecteddate
;
String
dateString
=
widget
.
selecteddate
;
DateFormat
format
=
DateFormat
(
"yyyy/MM/dd"
);
DateFormat
format
=
DateFormat
(
"yyyy/MM/dd"
);
_selectedDate
=
format
.
parse
(
dateString
);
_selectedDate
=
format
.
parse
(
dateString
);
...
@@ -632,7 +630,8 @@ class _FootFall extends State<FootFall> {
...
@@ -632,7 +630,8 @@ class _FootFall extends State<FootFall> {
const
Text
(
'Gender Breakup'
,
const
Text
(
'Gender Breakup'
,
textAlign:
TextAlign
.
left
,
textAlign:
TextAlign
.
left
,
style:
Constants
.
headerfontStyle
)
style:
Constants
.
headerfontStyle
)
].
map
((
e
)
=>
Padding
(
]
.
map
((
e
)
=>
Padding
(
padding:
padding:
const
EdgeInsets
.
only
(
left:
10
),
const
EdgeInsets
.
only
(
left:
10
),
child:
e
))
child:
e
))
...
...
lib/Screens/Home.dart
View file @
fff8be6c
...
@@ -4,7 +4,6 @@ import 'package:flutter/foundation.dart';
...
@@ -4,7 +4,6 @@ import 'package:flutter/foundation.dart';
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:shared_preferences/shared_preferences.dart'
;
import
'package:shared_preferences/shared_preferences.dart'
;
import
'package:storemonitor/Models/chartdata.dart'
;
import
'package:storemonitor/Models/chartdata.dart'
;
import
'package:storemonitor/Screens/CameraGridItems.dart'
;
import
'package:storemonitor/Screens/EmployeeStatus.dart'
;
import
'package:storemonitor/Screens/EmployeeStatus.dart'
;
import
'package:storemonitor/Screens/IssueVideos.dart'
;
import
'package:storemonitor/Screens/IssueVideos.dart'
;
import
'package:storemonitor/Screens/NavBar.dart'
;
import
'package:storemonitor/Screens/NavBar.dart'
;
...
...
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