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
572fbb38
Commit
572fbb38
authored
3 years ago
by
Maximilian Betz
Browse files
Options
Downloads
Patches
Plain Diff
dropdown menu not yet working
parent
d679e89e
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
lib/data_model.dart
+8
-8
8 additions, 8 deletions
lib/data_model.dart
lib/main.dart
+65
-27
65 additions, 27 deletions
lib/main.dart
with
73 additions
and
35 deletions
lib/data_model.dart
+
8
−
8
View file @
572fbb38
class
Event
{
final
int
id
;
final
String
urn
;
final
String
label
;
final
String
type
;
final
String
description
;
final
String
status
;
int
id
;
String
urn
;
String
label
;
String
type
;
String
description
;
String
status
;
Event
({
required
this
.
id
,
...
...
@@ -19,8 +19,8 @@ class Event{
}
class
EventType
{
final
String
name
;
final
int
id
;
String
name
;
int
id
;
EventType
({
required
this
.
name
,
...
...
This diff is collapsed.
Click to expand it.
lib/main.dart
+
65
−
27
View file @
572fbb38
...
...
@@ -82,26 +82,34 @@ class AddEvent extends StatelessWidget {
}
class
ViewEvents
extends
StatelessWidget
{
// Add some dummy events:
List
<
Event
>
events
=
[]
.
.
add
(
Event
(
id:
8311
,
urn:
'station:neumayer_iii:awi_snow_sampler_1'
,
label:
'SML_KO21_SC01'
,
type:
'Deployment'
,
description:
'Remi tool Tag1 1 Traverse'
,
status:
'PENDING'
))
.
.
add
(
Event
(
id:
8311
,
urn:
'station:neumayer_iii:awi_snow_sampler_1'
,
label:
'SML_KO21_SC01'
,
type:
'Deployment'
,
description:
'Remi tool Tag1 1 Traverse'
,
status:
'PENDING'
))
.
.
add
(
Event
(
id:
8311
,
urn:
'station:neumayer_iii:awi_snow_sampler_1'
,
label:
'SML_KO21_SC01'
,
type:
'Deployment'
,
description:
'Remi tool Tag1 1 Traverse'
,
status:
'PENDING'
))
.
.
add
(
Event
(
id:
8311
,
urn:
'station:neumayer_iii:awi_snow_sampler_1'
,
label:
'SML_KO21_SC01'
,
type:
'Deployment'
,
description:
'Remi tool Tag1 1 Traverse'
,
status:
'PENDING'
))
.
.
add
(
Event
(
id:
8311
,
urn:
'station:neumayer_iii:awi_snow_sampler_1'
,
label:
'SML_KO21_SC01'
,
type:
'Deployment'
,
description:
'Remi tool Tag1 1 Traverse'
,
status:
'PENDING'
))
.
.
add
(
Event
(
id:
8311
,
urn:
'station:neumayer_iii:awi_snow_sampler_1'
,
label:
'SML_KO21_SC01'
,
type:
'Deployment'
,
description:
'Remi tool Tag1 1 Traverse'
,
status:
'PENDING'
))
.
.
add
(
Event
(
id:
8311
,
urn:
'station:neumayer_iii:awi_snow_sampler_1'
,
label:
'SML_KO21_SC01'
,
type:
'Deployment'
,
description:
'Remi tool Tag1 1 Traverse'
,
status:
'PENDING'
))
.
.
add
(
Event
(
id:
8311
,
urn:
'station:neumayer_iii:awi_snow_sampler_1'
,
label:
'SML_KO21_SC01'
,
type:
'Deployment'
,
description:
'Remi tool Tag1 1 Traverse'
,
status:
'PENDING'
))
.
.
add
(
Event
(
id:
8311
,
urn:
'station:neumayer_iii:awi_snow_sampler_1'
,
label:
'SML_KO21_SC01'
,
type:
'Deployment'
,
description:
'Remi tool Tag1 1 Traverse'
,
status:
'PENDING'
))
.
.
add
(
Event
(
id:
8311
,
urn:
'station:neumayer_iii:awi_snow_sampler_1'
,
label:
'SML_KO21_SC01'
,
type:
'Deployment'
,
description:
'Remi tool Tag1 1 Traverse'
,
status:
'PENDING'
))
.
.
add
(
Event
(
id:
8311
,
urn:
'station:neumayer_iii:awi_snow_sampler_1'
,
label:
'SML_KO21_SC01'
,
type:
'Deployment'
,
description:
'Remi tool Tag1 1 Traverse'
,
status:
'PENDING'
))
.
.
add
(
Event
(
id:
8311
,
urn:
'station:neumayer_iii:awi_snow_sampler_1'
,
label:
'SML_KO21_SC01'
,
type:
'Deployment'
,
description:
'Remi tool Tag1 1 Traverse'
,
status:
'PENDING'
))
.
.
add
(
Event
(
id:
8311
,
urn:
'station:neumayer_iii:awi_snow_sampler_1'
,
label:
'SML_KO21_SC01'
,
type:
'Deployment'
,
description:
'Remi tool Tag1 1 Traverse'
,
status:
'PENDING'
))
;
.
.
add
(
Event
(
id:
8311
,
urn:
'station:neumayer_iii:awi_snow_sampler_1'
,
label:
'SML_KO21_SC01'
,
type:
'Deployment'
,
description:
'Remi tool Tag1 1 Traverse'
,
status:
'PENDING'
))
.
.
add
(
Event
(
id:
8311
,
urn:
'station:neumayer_iii:awi_snow_sampler_1'
,
label:
'SML_KO21_SC01'
,
type:
'Deployment'
,
description:
'Remi tool Tag1 1 Traverse'
,
status:
'PENDING'
))
.
.
add
(
Event
(
id:
8311
,
urn:
'station:neumayer_iii:awi_snow_sampler_1'
,
label:
'SML_KO21_SC01'
,
type:
'Deployment'
,
description:
'Remi tool Tag1 1 Traverse'
,
status:
'PENDING'
));
//for (var i = 0; i<100; i++){
// events.add(Event(id: i, urn: 'station:neumayer_iii:awi_snow_sampler_1', label: 'SML_KO21_SC01', type: 'Deployment', description: 'Remi tool Tag1 1 Traverse', status: 'PENDING'));
//}
String
testString
=
'blabalala'
;
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
...
...
@@ -152,16 +160,46 @@ class ViewEvents extends StatelessWidget {
),
],
rows:
<
DataRow
>[
for
(
var
event
in
events
)
DataRow
(
cells:
<
DataCell
>[
DataCell
(
Text
(
event
.
id
.
toString
())),
DataCell
(
Text
(
event
.
urn
)),
DataCell
(
Text
(
event
.
label
)),
DataCell
(
Text
(
event
.
type
)),
DataCell
(
Text
(
event
.
description
)),
DataCell
(
Text
(
event
.
status
)),
],
),
for
(
var
event
in
events
)
DataRow
(
cells:
<
DataCell
>[
DataCell
(
Text
(
event
.
id
.
toString
())),
DataCell
(
Text
(
event
.
urn
)),
DataCell
(
TextFormField
(
initialValue:
event
.
label
,
onFieldSubmitted:
(
val
)
{
event
.
label
=
val
;
//Update Database
},
),
),
DataCell
(
Text
(
event
.
type
)),
DataCell
(
TextFormField
(
initialValue:
event
.
description
,
onFieldSubmitted:
(
val
)
{
event
.
description
=
val
;
//Update Database
},
),
),
DataCell
(
DropdownButtonFormField
(
//value: Text('abe'),
items:
<
DropdownMenuItem
>[
DropdownMenuItem
(
child:
Text
(
'abs'
),
value:
Text
(
'1'
),
),
DropdownMenuItem
(
child:
Text
(
'abc'
),
value:
Text
(
'1'
),
),
],
onChanged:
null
,
),
),
],
),
],
),
),
...
...
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