@@ -112,16 +112,20 @@ class _GttExportWidgetState extends State<GttExportWidget> {
112
112
113
113
Future <void > init () async {
114
114
_projects = [
115
- DropdownMenuItem (child: Text (IEL .of (context).gttExport_selectProject), value: "none" )
115
+ DropdownMenuItem (
116
+ child: Text (IEL .of (context).gttExport_selectProject), value: "none" )
116
117
];
117
118
_gpsLogsProj = [
118
- DropdownMenuItem (child: Text (IEL .of (context).gttExport_selectProject), value: "none" )
119
+ DropdownMenuItem (
120
+ child: Text (IEL .of (context).gttExport_selectProject), value: "none" )
119
121
];
120
122
_simpleNotesProj = [
121
- DropdownMenuItem (child: Text (IEL .of (context).gttExport_selectProject), value: "none" )
123
+ DropdownMenuItem (
124
+ child: Text (IEL .of (context).gttExport_selectProject), value: "none" )
122
125
];
123
126
_imagesProj = [
124
- DropdownMenuItem (child: Text (IEL .of (context).gttExport_selectProject), value: "none" )
127
+ DropdownMenuItem (
128
+ child: Text (IEL .of (context).gttExport_selectProject), value: "none" )
125
129
];
126
130
127
131
_serverUrl = GpPreferences ().getStringSync (GttUtilities .KEY_GTT_SERVER_URL );
@@ -359,30 +363,35 @@ class _GttExportWidgetState extends State<GttExportWidget> {
359
363
bold: true ),
360
364
),
361
365
Padding (
362
- padding: SmashUI
363
- .defaultPadding (),
364
- child: SmashUI .smallText (
365
- IEL
366
- .of (context)
367
- .gttExport_dataUploadedSelectedProject, //"The following data will be uploaded upon sync."
368
- color: Colors .grey),
369
- ),
370
- Padding (
371
- padding: SmashUI
372
- .defaultPadding (),
366
+ padding:
367
+ EdgeInsets .symmetric (
368
+ vertical: SmashUI
369
+ .DEFAULT_PADDING ,
370
+ horizontal: 24 ),
373
371
child: SmashUI .smallText (
374
- IEL
375
- .of (context)
376
- .gttExport_contactAdmin, //"The following data will be uploaded upon sync."
372
+ //"The following data will be uploaded upon sync. If there is no available project, please contact your admin."
373
+ "${IEL .of (context ).gttExport_dataUploadedSelectedProject } ${IEL .of (context ).gttExport_contactAdmin }" ,
377
374
color: Colors .grey),
378
375
),
379
376
Expanded (
380
377
child: ListView (
378
+ padding: EdgeInsets .all (
379
+ SmashUI
380
+ .DEFAULT_PADDING ),
381
381
children: < Widget > [
382
382
// projWidget,
383
- SizedBox (
384
- height: 32 ,
383
+ SizedBox (height: 8 ),
384
+ ListTile (
385
+ leading: Icon (
386
+ SmashIcons
387
+ .formNotesIcon,
388
+ color: SmashColors
389
+ .mainDecorations,
390
+ ),
391
+ title: SmashUI .normalText (
392
+ "${IEL .of (context ).gttExport_formNotes }: $_formNotesCount " ), //
385
393
),
394
+ SizedBox (height: 16 ),
386
395
ListTile (
387
396
leading: Icon (
388
397
SmashIcons .logIcon,
@@ -391,7 +400,7 @@ class _GttExportWidgetState extends State<GttExportWidget> {
391
400
),
392
401
title: SmashUI .normalText (
393
402
"${IEL .of (context ).gttExport_gpsLogs }: $_gpsLogCount " ), //"Gps Logs:"
394
- trailing :
403
+ subtitle :
395
404
DropdownButton <
396
405
String >(
397
406
items: _gpsLogsProj,
@@ -401,9 +410,10 @@ class _GttExportWidgetState extends State<GttExportWidget> {
401
410
setState (() =>
402
411
_selectedGpsLogProj =
403
412
s.toString ()),
413
+ isExpanded: true ,
404
414
),
405
415
),
406
-
416
+ SizedBox (height : 16 ),
407
417
ListTile (
408
418
leading: Icon (
409
419
SmashIcons
@@ -413,7 +423,7 @@ class _GttExportWidgetState extends State<GttExportWidget> {
413
423
),
414
424
title: SmashUI .normalText (
415
425
"${IEL .of (context ).gttExport_simpleNotes }: $_simpleNotesCount " ), //"Simple Notes"
416
- trailing :
426
+ subtitle :
417
427
DropdownButton <
418
428
String >(
419
429
items:
@@ -425,8 +435,10 @@ class _GttExportWidgetState extends State<GttExportWidget> {
425
435
_selectedSimpleNotesProj =
426
436
s.toString ();
427
437
}),
438
+ isExpanded: true ,
428
439
),
429
440
),
441
+ SizedBox (height: 16 ),
430
442
ListTile (
431
443
leading: Icon (
432
444
SmashIcons
@@ -436,7 +448,7 @@ class _GttExportWidgetState extends State<GttExportWidget> {
436
448
),
437
449
title: SmashUI .normalText (
438
450
"${IEL .of (context ).gttExport_images }: $_imagesCount " ), //"Images"
439
- trailing :
451
+ subtitle :
440
452
DropdownButton <
441
453
String >(
442
454
items: _imagesProj,
@@ -446,18 +458,9 @@ class _GttExportWidgetState extends State<GttExportWidget> {
446
458
setState (() =>
447
459
_selectedImagesProj =
448
460
s.toString ()),
461
+ isExpanded: true ,
449
462
),
450
463
),
451
- ListTile (
452
- leading: Icon (
453
- SmashIcons
454
- .formNotesIcon,
455
- color: SmashColors
456
- .mainDecorations,
457
- ),
458
- title: SmashUI .normalText (
459
- "${IEL .of (context ).gttExport_formNotes }: $_formNotesCount " ), //
460
- ),
461
464
],
462
465
),
463
466
),
0 commit comments