Fakultas Ilmu Komputer UI

fasilitas.dart 34.9 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import 'package:flutter/material.dart';
import 'package:ppl_disabilitas/bloc/KomentarBloc.dart';
import 'package:ppl_disabilitas/component/ImageHolder.dart';
import 'package:ppl_disabilitas/component/bisago_appbar.dart';
import 'package:ppl_disabilitas/component/bisago_drawer.dart';
import 'package:ppl_disabilitas/config/styles.dart';
import 'package:ppl_disabilitas/network/data/network_model.dart';
import 'package:ppl_disabilitas/page/filter_fasilitas/komentar.dart';

class Fasilitas extends StatefulWidget {
  final String nama;
  final String alamat;
  final String url;
  final String telpon;
15
16
  final int id;
  Fasilitas({this.nama, this.alamat, this.url, this.telpon, this.id});
17
18
19
20
21
  @override
  _FasilitasState createState() => _FasilitasState();
}

class _FasilitasState extends State<Fasilitas> {
Fakhira Devina's avatar
Fakhira Devina committed
22
23
24
25
26
27
28
29
30
31
32
  var kursiRodaVal = false;
  var liftVal = false;
  var toiletDisabilitasVal = false;
  var tempatIbadahVal = false;
  var bidangMiringVal = false;
  var parkirUmumVal = false;
  var parkirDisabilitasVal = false;
  var komentarTerbaru = false;
  var komentarRatingTertinggi = false;
  var komentarTerpopuler = false;
  var showUrutan = true;
33
34
35
36
37
38
39
40
41
  KomentarBloc _bloc;

  @override
  void initState() {
    print(widget.nama);
    print(widget.id);
    _bloc = KomentarBloc(widget.nama);
    super.initState();
  }
Fakhira Devina's avatar
Fakhira Devina committed
42

43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
  @override
  Widget build(BuildContext context) {
    print('widget.telpon ${widget.url}');
    return Scaffold(
      backgroundColor: Colors.white,
      drawer: BisaGoDrawer(),
      body: SingleChildScrollView(
        child: Column(children: <Widget>[
          SizedBox(height: 160, child: ImageHolder(url: widget.url)),
          Container(
            padding: EdgeInsets.all(doubleSpace),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: <Widget>[
                Text(
                  widget.nama,
                  style: TextStyle(
                    fontSize: 25,
                    fontWeight: FontWeight.w800,
                    color: Colors.black,
                    fontFamily: 'Muli',
                  ),
                ),
                Container(
                  margin: EdgeInsets.only(
                      top: regularSpace,
                      bottom: regularSpace,
                      left: smallSpace),
                  child: Row(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: <Widget>[
                      Icon(Icons.place, color: Colors.black, size: 20),
                      Flexible(
                        child: Text(
                          widget.alamat,
                          softWrap: true,
                          textAlign: TextAlign.left,
                          style: TextStyle(
                            fontSize: 15,
                            color: Colors.black,
                            fontFamily: 'Muli',
                          ),
                        ),
                      ),
                    ],
                  ),
                ),
                Row(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: <Widget>[
                    Icon(
                      Icons.local_phone,
                      color: Colors.black,
                      size: 20,
                    ),
                    Flexible(
                      child: Text(
100
                        widget.telpon,
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
                        softWrap: true,
                        textAlign: TextAlign.left,
                        style: TextStyle(
                          fontSize: 15,
                          color: Colors.black,
                          fontFamily: 'Muli',
                        ),
                      ),
                    ),
                  ],
                ),
                Container(
                  margin: EdgeInsets.only(
                      top: doubleSpace, bottom: doubleSpace, left: smallSpace),
                  decoration: BoxDecoration(boxShadow: regularShadow),
                  child: SizedBox(
                    width: double.infinity,
                    child: FlatButton(
Fakhira Devina's avatar
Fakhira Devina committed
119
                      key: Key('Tambah Informasi'),
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
                      color: Colors.green[700],
                      textColor: Colors.white,
                      disabledColor: Colors.grey,
                      disabledTextColor: Colors.black,
                      padding: EdgeInsets.all(8),
                      shape: RoundedRectangleBorder(
                          borderRadius: regularBorderRadius,
                          side: BorderSide(color: Colors.transparent)),
                      splashColor: Colors.lightGreen,
                      onPressed: () {
                        /*...*/
                      },
                      child: Text(
                        "Tambah Informasi",
                        style: TextStyle(fontSize: 20),
                      ),
                    ),
                  ),
                ),
                Container(
                  margin: EdgeInsets.only(bottom: doubleSpace),
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: <Widget>[
                      Text(
                        'Fasilitas',
                        style: TextStyle(
                          fontSize: 25,
                          fontWeight: FontWeight.w800,
                          color: Colors.black,
                          fontFamily: 'Muli',
                        ),
                      ),
                      Container(
                        decoration: BoxDecoration(boxShadow: regularShadow),
                        child: FlatButton(
Fakhira Devina's avatar
Fakhira Devina committed
156
                          key: Key('FilterButton'),
157
158
159
160
161
162
163
164
165
                          color: Colors.green[700],
                          textColor: Colors.white,
                          disabledColor: Colors.grey,
                          disabledTextColor: Colors.black,
                          padding: EdgeInsets.all(8),
                          shape: RoundedRectangleBorder(
                              borderRadius: regularBorderRadius,
                              side: BorderSide(color: Colors.transparent)),
                          splashColor: Colors.lightGreen,
166
167
168
169
170
                          onPressed: () => showModalBottomSheet(
                              context: context,
                              builder: (context) => InsideFilter(),
                              backgroundColor: Colors.transparent,
                              isScrollControlled: true),
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
                          child: Row(
                            children: <Widget>[
                              Icon(Icons.filter_list,
                                  color: Colors.white, size: 20),
                              Text(
                                "Filter Informasi",
                                style: TextStyle(fontSize: 13),
                              ),
                            ],
                          ),
                        ),
                      ),
                    ],
                  ),
                ),
                StreamBuilder(
                    stream: _bloc.komentarListStream,
                    builder: (context, snapshot) {
                      if (snapshot.hasData) {
                        switch (snapshot.data.status) {
                          case Status.LOADING:
                            return Center(
                              child: CircularProgressIndicator(
                                valueColor:
                                    AlwaysStoppedAnimation<Color>(greenPrimary),
                              ),
                            );
                            break;
                          case Status.COMPLETED:
                            final komentar = snapshot.data.data;
Fakhira Devina's avatar
Fakhira Devina committed
201
202
203
204
205
206
                            return Column(
                                children: komentar
                                    .allKomentar.map<Widget>((k) => Komentar(
                                          komentar: k,
                                        ))
                                    .toList());
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
                            break;
                          case Status.ERROR:
                            return Center(
                              child: Text(snapshot.data.data.toString()),
                            );
                            break;
                        }
                      }
                      return Container();
                    }),
              ],
            ),
          ),
        ]),
      ),
      appBar: PreferredSize(
        preferredSize: Size.fromHeight(55),
        child: BisaGoAppBar(),
        key: Key('Scaffold Text Field'),
      ),
    );
  }
Fakhira Devina's avatar
Fakhira Devina committed
229

Fakhira Devina's avatar
Fakhira Devina committed
230
231
232
233
234
235
236
237
  InsideFilter() {
    return StatefulBuilder(
      builder: (context, setStateModal) => Container(
        height: MediaQuery.of(context).size.height / 2,
        decoration: BoxDecoration(
          boxShadow: regularShadow,
          borderRadius: BorderRadius.all(
              Radius.circular(10) //         <--- border radius here
Fakhira Devina's avatar
Fakhira Devina committed
238
              ),
Fakhira Devina's avatar
Fakhira Devina committed
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
          color: Colors.white,
        ),
        child: Container(
          child: Column(
            children: <Widget>[
              Container(
                padding: EdgeInsets.all(regularBiggerSpace),
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  children: <Widget>[
                    Row(
                      children: <Widget>[
                        Icon(Icons.filter_list),
                        Container(
                          margin: EdgeInsets.only(left: regularSpace),
                          child: Text(
                            'Filter Pencarian',
                            style: TextStyle(
                                color: Colors.black,
                                fontWeight: FontWeight.w800,
                                fontSize: 20.0),
                          ),
                        ),
                      ],
                    ),
                    Row(
                      children: <Widget>[
                        Text(
                          'BATAL',
                          style: TextStyle(
                              color: Colors.black,
                              fontWeight: FontWeight.w800,
                              fontSize: 17),
                        ),
                      ],
                    ),
                  ],
                ),
              ),
              Container(
                decoration: BoxDecoration(
                    border: Border(
                        top: BorderSide(color: greenPrimary, width: 1.5))),
              ),
              Expanded(
                child: Container(
                  child: Row(
                    children: <Widget>[
                      Expanded(
                        flex: 1,
                        child: Container(
                          decoration: BoxDecoration(
                            color: Colors.white,
                          ),
                          child: ListView(
                            children: <Widget>[
                              InkWell(
                                  child: Container(
                                    decoration: BoxDecoration(
                                      color: greenPale,
                                    ),
                                    padding: EdgeInsets.only(
                                        left: regularSpace,
                                        right: regularSpace,
                                        top: doubleSpace,
                                        bottom: doubleSpace),
                                    child: Text(
                                      'Urutan',
                                      style: TextStyle(
                                        fontSize: 18,
                                        color: Colors.white,
                                        fontFamily: 'Muli',
                                      ),
                                    ),
                                  ),
                                  splashColor: Colors.green[400],
                                  highlightColor: Colors.green[400],
                                  onTap: () => setStateModal(() {
Fakhira Devina's avatar
Fakhira Devina committed
317
318
319
                                        print('no');
                                        showUrutan = true;
                                      })),
Fakhira Devina's avatar
Fakhira Devina committed
320
321
322
                              Container(
                                decoration: BoxDecoration(
                                    border: Border(
Fakhira Devina's avatar
Fakhira Devina committed
323
324
325
                                  top: BorderSide(
                                      color: greenPrimary, width: 1.5),
                                )),
Fakhira Devina's avatar
Fakhira Devina committed
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
                              ),
                              InkWell(
                                  child: Container(
                                    decoration: BoxDecoration(
                                      color: greenPale,
                                    ),
                                    padding: EdgeInsets.only(
                                        left: regularSpace,
                                        right: regularSpace,
                                        top: doubleSpace,
                                        bottom: doubleSpace),
                                    child: Text(
                                      'Jenis Fasilitas',
                                      style: TextStyle(
                                        fontSize: 18,
                                        color: Colors.white,
                                        fontFamily: 'Muli',
                                      ),
                                    ),
                                  ),
                                  splashColor: Colors.green[400],
                                  highlightColor: Colors.green[400],
                                  onTap: () => setStateModal(() {
Fakhira Devina's avatar
Fakhira Devina committed
349
350
351
                                        print("yes");
                                        showUrutan = false;
                                      })),
Fakhira Devina's avatar
Fakhira Devina committed
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
                              Container(
                                decoration: BoxDecoration(
                                    border: Border(
                                        top: BorderSide(
                                            color: greenPrimary, width: 1.5))),
                              ),
                            ],
                          ),
                        ),
                      ),
                      Expanded(
                        flex: 3,
                        child: Container(
                          decoration: BoxDecoration(
                            color: Colors.white,
                            border: Border(
                              left: BorderSide(color: greenPrimary, width: 1.5),
                            ),
                          ),
                          child: Stack(
                            children: <Widget>[
                              Opacity(
                                opacity: showUrutan ? 0 : 1,
                                child: ListView(
                                  children: <Widget>[
                                    Row(
                                      crossAxisAlignment:
Fakhira Devina's avatar
Fakhira Devina committed
379
                                          CrossAxisAlignment.center,
Fakhira Devina's avatar
Fakhira Devina committed
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
                                      children: <Widget>[
                                        Theme(
                                          data: Theme.of(context).copyWith(
                                            unselectedWidgetColor: greenPrimary,
                                          ),
                                          child: Checkbox(
                                            checkColor: Colors.red,
                                            activeColor: Colors.amberAccent,
                                            value: komentarTerbaru,
                                            onChanged: (bool value) {
                                              setStateModal(() {
                                                komentarTerbaru = value;
                                              });
                                            },
                                          ),
                                        ),
                                        Text(
                                          "Komentar Terbaru",
                                          style: TextStyle(
                                              color: Colors.black,
                                              fontSize: 18),
                                        ),
                                      ],
                                    ),
                                    Row(
                                      crossAxisAlignment:
Fakhira Devina's avatar
Fakhira Devina committed
406
                                          CrossAxisAlignment.center,
Fakhira Devina's avatar
Fakhira Devina committed
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
                                      children: <Widget>[
                                        Theme(
                                          data: Theme.of(context).copyWith(
                                            unselectedWidgetColor: greenPrimary,
                                          ),
                                          child: Checkbox(
                                            checkColor: Colors.red,
                                            activeColor: Colors.amberAccent,
                                            value: komentarTerpopuler,
                                            onChanged: (bool value) {
                                              setStateModal(() {
                                                komentarTerpopuler = value;
                                              });
                                            },
                                          ),
                                        ),
                                        Text(
                                          "Komentar Terpopuler",
                                          style: TextStyle(
                                              color: Colors.black,
                                              fontSize: 18),
                                        ),
                                      ],
                                    ),
                                    Container(
                                      child: Row(
                                        crossAxisAlignment:
Fakhira Devina's avatar
Fakhira Devina committed
434
                                            CrossAxisAlignment.center,
Fakhira Devina's avatar
Fakhira Devina committed
435
436
437
438
                                        children: <Widget>[
                                          Theme(
                                            data: Theme.of(context).copyWith(
                                              unselectedWidgetColor:
Fakhira Devina's avatar
Fakhira Devina committed
439
                                                  greenPrimary,
Fakhira Devina's avatar
Fakhira Devina committed
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
                                            ),
                                            child: Checkbox(
                                              checkColor: Colors.red,
                                              activeColor: Colors.amberAccent,
                                              value: komentarTerpopuler,
                                              onChanged: (bool value) {
                                                setStateModal(() {
                                                  komentarTerpopuler = value;
                                                });
                                              },
                                            ),
                                          ),
                                          Flexible(
                                            child: Text(
                                              "Komentar dengan Rating Tertinggi",
                                              style: TextStyle(
                                                  color: Colors.black,
                                                  fontSize: 18),
                                            ),
                                          ),
                                        ],
                                      ),
                                    ),
                                  ],
                                ),
                              ),
                              Opacity(
                                opacity: showUrutan ? 1 : 0,
                                child: ListView(
                                  children: <Widget>[
                                    Row(
                                      crossAxisAlignment:
Fakhira Devina's avatar
Fakhira Devina committed
472
                                          CrossAxisAlignment.center,
Fakhira Devina's avatar
Fakhira Devina committed
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
                                      children: <Widget>[
                                        Theme(
                                          data: Theme.of(context).copyWith(
                                            unselectedWidgetColor: greenPrimary,
                                          ),
                                          child: Checkbox(
                                            checkColor: Colors.red,
                                            activeColor: Colors.amberAccent,
                                            value: kursiRodaVal,
                                            onChanged: (bool value) {
                                              setStateModal(() {
                                                kursiRodaVal = value;
                                              });
                                            },
                                          ),
                                        ),
                                        Text(
                                          "Kursi roda",
                                          style: TextStyle(
                                              color: Colors.black,
                                              fontSize: 18),
                                        ),
                                      ],
                                    ),
                                    Row(
                                      crossAxisAlignment:
Fakhira Devina's avatar
Fakhira Devina committed
499
                                          CrossAxisAlignment.center,
Fakhira Devina's avatar
Fakhira Devina committed
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
                                      children: <Widget>[
                                        Theme(
                                          data: Theme.of(context).copyWith(
                                            unselectedWidgetColor: greenPrimary,
                                          ),
                                          child: Checkbox(
                                            checkColor: Colors.red,
                                            activeColor: Colors.amberAccent,
                                            value: liftVal,
                                            onChanged: (bool value) {
                                              setStateModal(() {
                                                liftVal = value;
                                              });
                                            },
                                          ),
                                        ),
                                        Text(
                                          "Lift",
                                          style: TextStyle(
                                              color: Colors.black,
                                              fontSize: 18),
                                        ),
                                      ],
                                    ),
                                    Row(
                                      crossAxisAlignment:
Fakhira Devina's avatar
Fakhira Devina committed
526
                                          CrossAxisAlignment.center,
Fakhira Devina's avatar
Fakhira Devina committed
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
                                      children: <Widget>[
                                        Theme(
                                          data: Theme.of(context).copyWith(
                                            unselectedWidgetColor: greenPrimary,
                                          ),
                                          child: Checkbox(
                                            checkColor: Colors.red,
                                            activeColor: Colors.amberAccent,
                                            value: toiletDisabilitasVal,
                                            onChanged: (bool value) {
                                              setStateModal(() {
                                                toiletDisabilitasVal = value;
                                              });
                                            },
                                          ),
                                        ),
                                        Text(
                                          "Toilet Disabilitas",
                                          style: TextStyle(
                                              color: Colors.black,
                                              fontSize: 18),
                                        ),
                                      ],
                                    ),
                                    Row(
                                      crossAxisAlignment:
Fakhira Devina's avatar
Fakhira Devina committed
553
                                          CrossAxisAlignment.center,
Fakhira Devina's avatar
Fakhira Devina committed
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
                                      children: <Widget>[
                                        Theme(
                                          data: Theme.of(context).copyWith(
                                            unselectedWidgetColor: greenPrimary,
                                          ),
                                          child: Checkbox(
                                            checkColor: Colors.red,
                                            activeColor: Colors.amberAccent,
                                            value: tempatIbadahVal,
                                            onChanged: (bool value) {
                                              setStateModal(() {
                                                tempatIbadahVal = value;
                                              });
                                            },
                                          ),
                                        ),
                                        Text(
                                          "Tempat Ibadah",
                                          style: TextStyle(
                                              color: Colors.black,
                                              fontSize: 18),
                                        ),
                                      ],
                                    ),
                                    Row(
                                      crossAxisAlignment:
Fakhira Devina's avatar
Fakhira Devina committed
580
                                          CrossAxisAlignment.center,
Fakhira Devina's avatar
Fakhira Devina committed
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
                                      children: <Widget>[
                                        Theme(
                                          data: Theme.of(context).copyWith(
                                            unselectedWidgetColor: greenPrimary,
                                          ),
                                          child: Checkbox(
                                            checkColor: Colors.red,
                                            activeColor: Colors.amberAccent,
                                            value: bidangMiringVal,
                                            onChanged: (bool value) {
                                              setStateModal(() {
                                                bidangMiringVal = value;
                                              });
                                            },
                                          ),
                                        ),
                                        Text(
                                          "Bidang Miring (Ramp)",
                                          style: TextStyle(
                                              color: Colors.black,
                                              fontSize: 18),
                                        ),
                                      ],
                                    ),
                                    Row(
                                      crossAxisAlignment:
Fakhira Devina's avatar
Fakhira Devina committed
607
                                          CrossAxisAlignment.center,
Fakhira Devina's avatar
Fakhira Devina committed
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
                                      children: <Widget>[
                                        Theme(
                                          data: Theme.of(context).copyWith(
                                            unselectedWidgetColor: greenPrimary,
                                          ),
                                          child: Checkbox(
                                            checkColor: Colors.red,
                                            activeColor: Colors.amberAccent,
                                            value: parkirUmumVal,
                                            onChanged: (bool value) {
                                              setStateModal(() {
                                                parkirUmumVal = value;
                                              });
                                            },
                                          ),
                                        ),
                                        Text(
                                          "Parkir Umum",
                                          style: TextStyle(
                                              color: Colors.black,
                                              fontSize: 18),
                                        ),
                                      ],
                                    ),
                                    Row(
                                      crossAxisAlignment:
Fakhira Devina's avatar
Fakhira Devina committed
634
                                          CrossAxisAlignment.center,
Fakhira Devina's avatar
Fakhira Devina committed
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
                                      children: <Widget>[
                                        Theme(
                                          data: Theme.of(context).copyWith(
                                            unselectedWidgetColor: greenPrimary,
                                          ),
                                          child: Checkbox(
                                            checkColor: Colors.red,
                                            activeColor: Colors.amberAccent,
                                            value: parkirDisabilitasVal,
                                            onChanged: (bool value) {
                                              setStateModal(() {
                                                parkirDisabilitasVal = value;
                                              });
                                            },
                                          ),
                                        ),
                                        Text(
                                          "Parkir Disabilitas",
                                          style: TextStyle(
                                              color: Colors.black,
                                              fontSize: 18),
                                        ),
                                        //Container(height: 1.0,),
                                      ],
                                    ),
                                  ],
                                ),
                              ),
                            ],
                          ),
                        ),
                      ),
                    ],
                  ),
                ),
              ),
              Column(
                children: <Widget>[
                  Container(
                    decoration: BoxDecoration(
                        border: Border(
Fakhira Devina's avatar
Fakhira Devina committed
676
677
                      top: BorderSide(color: greenPrimary, width: 1.5),
                    )),
Fakhira Devina's avatar
Fakhira Devina committed
678
679
680
                  ),
                  Container(
                    margin:
Fakhira Devina's avatar
Fakhira Devina committed
681
                        EdgeInsets.only(left: doubleSpace, right: doubleSpace),
Fakhira Devina's avatar
Fakhira Devina committed
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                      children: <Widget>[
                        Container(
                          margin: EdgeInsets.only(
                              top: regularSpace, bottom: regularSpace),
                          decoration: BoxDecoration(boxShadow: regularShadow),
                          child: SizedBox(
                            child: FlatButton(
                              color: redPrimary,
                              textColor: Colors.white,
                              padding: EdgeInsets.only(
                                  top: regularBiggerSpace,
                                  bottom: regularBiggerSpace,
                                  left: doubleSpace,
                                  right: doubleSpace),
                              shape: RoundedRectangleBorder(
                                  borderRadius: regularBorderRadius,
                                  side: BorderSide(color: Colors.transparent)),
                              splashColor: greenPrimary,
                              onPressed: () {
                                /*...*/
                              },
                              child: Text(
                                "Hapus Semua",
                                style: TextStyle(
                                    fontSize: 20, fontWeight: FontWeight.w400),
                              ),
                            ),
                          ),
                        ),
                        Container(
                          margin: EdgeInsets.only(
                              top: regularSpace, bottom: regularSpace),
                          decoration: BoxDecoration(boxShadow: regularShadow),
                          child: SizedBox(
                            child: FlatButton(
                              color: greenPrimary,
                              textColor: Colors.white,
                              padding: EdgeInsets.only(
                                  top: regularBiggerSpace,
                                  bottom: regularBiggerSpace,
                                  left: spaceFourty,
                                  right: spaceFourty),
                              shape: RoundedRectangleBorder(
                                  borderRadius: regularBorderRadius,
                                  side: BorderSide(color: Colors.transparent)),
                              splashColor: greenPrimary,
                              onPressed: () {
                                /*...*/
                              },
                              child: Text(
                                "Terapkan",
                                style: TextStyle(
                                    fontSize: 20, fontWeight: FontWeight.w400),
                              ),
                            ),
                          ),
                        ),
                      ],
                    ),
                  ),
                ],
              ),
            ],
          ),
        ),
      ),
    );
  }
752
}