Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROG2900
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sara Savanovic Djordjevic
PROG2900
Commits
f8185d7c
Commit
f8185d7c
authored
11 months ago
by
Sara Savanovic Djordjevic
Browse files
Options
Downloads
Patches
Plain Diff
upddate: last updated date format
parent
8f9ba552
No related branches found
Branches containing commit
No related tags found
1 merge request
!11
Clhp map
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/lib/consts.dart
+1
-1
1 addition, 1 deletion
app/lib/consts.dart
app/lib/widgets/bar_graph/bar_data.dart
+1
-0
1 addition, 0 deletions
app/lib/widgets/bar_graph/bar_data.dart
app/lib/widgets/main_layout.dart
+32
-1
32 additions, 1 deletion
app/lib/widgets/main_layout.dart
with
34 additions
and
2 deletions
app/lib/consts.dart
+
1
−
1
View file @
f8185d7c
...
...
@@ -16,8 +16,8 @@ Uint8List selectedRelation = Uint8List(0);
List
<
Measurement
>
selectedMarkerList
=
[];
LatLng
mapCenter
=
LatLng
(
60.8000
,
10.8471
);
DateTime
?
lastUpdate
;
// Last time data was fetched from server
List
<
String
>
lakeSearchOptions
=
[];
// Init empty
bool
internetConnection
=
true
;
// Font settings
const
textColor
=
Colors
.
white
;
...
...
This diff is collapsed.
Click to expand it.
app/lib/widgets/bar_graph/bar_data.dart
+
1
−
0
View file @
f8185d7c
...
...
@@ -72,6 +72,7 @@ class _BarDataState extends State<BarData> {
);
}
// _buildLegendItem renders a colored circle and text to form a legend
Widget
_buildLegendItem
(
Color
color
,
String
text
)
{
return
Row
(
children:
[
...
...
This diff is collapsed.
Click to expand it.
app/lib/widgets/main_layout.dart
+
32
−
1
View file @
f8185d7c
...
...
@@ -208,7 +208,7 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
lastUpdate?.month == DateTime.now().month &&
lastUpdate?.year == DateTime.now().year ?
'${lastUpdate?.hour}
:
${lastUpdate?.minute}
'
:
'
${lastUpdate?.day}
-
${lastUpdate
?
.month
}
-
${lastUpdate?.year}
'
)
:
''
}
',
'
${lastUpdate?.day}
.
${
formatMonth(
lastUpdate
!
.month
)}
${lastUpdate?.year}
'
)
:
''
}
',
style: GoogleFonts.dmSans(
fontSize: 14,
color: Colors.white60,
...
...
@@ -303,3 +303,34 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
);
}
}
String formatMonth(int month) {
switch (month) {
case 1:
return '
Jan
';
case 2:
return '
Feb
';
case 3:
return '
Mar
';
case 4:
return '
Apr
';
case 5:
return '
May
';
case 6:
return '
Jun
';
case 7:
return '
Jul
';
case 8:
return '
Aug
';
case 9:
return '
Sep
';
case 10:
return '
Oct
';
case 11:
return '
Nov
';
case 12:
return '
Dec
';
default:
return '';
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment