Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MobileEventLog
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
Container 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
Data-Logistics-Support
MobileEventLog
Commits
b43f24bc
Commit
b43f24bc
authored
2 years ago
by
Maximilian Betz
Browse files
Options
Downloads
Patches
Plain Diff
expanded Now Button to parent size
parent
553b7cf7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+0
-1
0 additions, 1 deletion
README.md
lib/addevent.dart
+33
-26
33 additions, 26 deletions
lib/addevent.dart
with
33 additions
and
27 deletions
README.md
+
0
−
1
View file @
b43f24bc
...
...
@@ -60,7 +60,6 @@ Text: #57827E
# Add Event
-
Show
\*
next to lable for required fields.
-
NOW button Equal distance to edge and textfield. Same hight as textfield.
-
GNSS Switch above 'Label' field or in TopMenuBar? The current position is suboptimal as sometimes clicked when adding a event is desired.
-
Precision, No-Fix, GNSS-deactivated : alligned left
-
Event Type /URN Item separation and hightlighting chosen type as in configuration.
...
...
This diff is collapsed.
Click to expand it.
lib/addevent.dart
+
33
−
26
View file @
b43f24bc
...
...
@@ -367,36 +367,43 @@ class _AddEventPageState extends State<AddEvent> {
),
const
SizedBox
(
height:
15.0
),
Row
(
mainAxisSize:
MainAxisSize
.
max
,
//mainAxisSize: MainAxisSize.max,
//crossAxisAlignment: CrossAxisAlignment.stretch,
children:
<
Widget
>[
Flexible
(
child:
TextFormField
(
controller:
TextEditingController
(
text:
eventStore
.
currentEvent
.
startDate
.
substring
(
0
,
19
)
+
'Z'
//Do not show microseconds
Flexible
(
child:
TextFormField
(
controller:
TextEditingController
(
text:
eventStore
.
currentEvent
.
startDate
.
substring
(
0
,
19
)
+
'Z'
//Do not show microseconds
),
readOnly:
true
,
decoration:
const
InputDecoration
(
labelText:
'Timestamp'
,
//helperText: '', //Adds some space below field
border:
OutlineInputBorder
(),
),
onTap:
()
{
//TODO: only open if GNSS sync is disabled.
DatePicker
.
showDateTimePicker
(
context
,
showTitleActions:
true
,
onConfirm:
(
date
)
{
//Only one field for start and end date.
var
isoDate
=
date
.
toIso8601String
();
eventStore
.
currentEvent
.
startDate
=
isoDate
;
eventStore
.
currentEvent
.
endDate
=
isoDate
;
debugPrint
(
'Date set to :
$isoDate
'
);
setState
(()
{});
},
currentTime:
DateTime
.
now
()
.
toUtc
(),
locale:
LocaleType
.
en
);
},
),
readOnly:
true
,
decoration:
const
InputDecoration
(
labelText:
'Timestamp'
,
//helperText: '', //Adds some space below field
border:
OutlineInputBorder
(),
),
onTap:
()
{
DatePicker
.
showDateTimePicker
(
context
,
showTitleActions:
true
,
onConfirm:
(
date
)
{
//Only one field for start and end date.
var
isoDate
=
date
.
toIso8601String
();
eventStore
.
currentEvent
.
startDate
=
isoDate
;
eventStore
.
currentEvent
.
endDate
=
isoDate
;
debugPrint
(
'Date set to :
$isoDate
'
);
setState
(()
{});
},
currentTime:
DateTime
.
now
()
.
toUtc
(),
locale:
LocaleType
.
en
);
},
),
),
const
SizedBox
(
width:
5
),
ElevatedButton
(
style:
ElevatedButton
.
styleFrom
(
padding:
const
EdgeInsets
.
symmetric
(
vertical:
20.0
),
//TODO: find a more dynamic solution without a fixed value
),
onPressed:
()
{
var
date
=
DateTime
.
now
()
.
toUtc
();
var
isoDate
=
date
.
toIso8601String
();
...
...
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