Fakultas Ilmu Komputer UI

biodata_pendukung.dart 32.9 KB
Newer Older
1
2
import 'package:flutter/material.dart';
import 'package:fundex_app/assets/colors.dart';
3
import 'package:fundex_app/main-screen.dart';
4
import 'package:fundex_app/main.dart';
5
import 'package:fundex_app/pages/kyc/data_identitas.dart';
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import 'package:fundex_app/pages/kyc/design.dart';
// import 'package:grouped_buttons/grouped_buttons.dart';

class Validasi {
  static String validate(String val) {
    return val.isEmpty ? 'Harus di isi.' : null;
  }
}

class ValidasiEmail {
  static String validate(String value) {
    if (value.isEmpty) {
      return 'Email harus di isi';
    }
    if (!RegExp("^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9.-]+.[a-z]").hasMatch(value)) {
      return 'Email tidak valid';
    }
    return null;
  }
}

class DataPendukung extends StatefulWidget {
  @override
  _DataPendukungState createState() => _DataPendukungState();
}

class _DataPendukungState extends State<DataPendukung> {
  final GlobalKey<FormState> _formkey = GlobalKey<FormState>();

  // ignore: unused_field
  String _latarBelakang;
  // ignore: unused_field
  String _pekerjaan;
  // ignore: unused_field
  String _namaPerusahaan;
  // ignore: unused_field
  String _bidangUsaha;
  // ignore: unused_field
  String _alamatKantor;
  // ignore: unused_field
  String _jabatan;
  // ignore: unused_field
  String _noTelepon;
  // ignore: unused_field
  String _emailKantor;
  // ignore: unused_field
  String _tujuanInvestasi;
  bool valueCheckbox = false;
  bool _checkBox = false;
  var _onPressed;

57
58
59
  final notifikasiCheckbox = [
    CheckboxNotificationSetting(title: 'Gaji'),
    CheckboxNotificationSetting(title: 'Hibah'),
60
61
62
63
    CheckboxNotificationSetting(
        title: 'Pasangan, Orang Tua, Keluarga atau Teman'),
    CheckboxNotificationSetting(
        title: 'Santunan (Dana Pensiun, Donatur, Asuransi)'),
64
65
    CheckboxNotificationSetting(title: 'Hasil Usaha'),
    CheckboxNotificationSetting(title: 'Warisan'),
66
67
    CheckboxNotificationSetting(
        title: 'Hasil Investasi (Bunga, Capital Gain, Dividen)'),
68
69
70
    CheckboxNotificationSetting(title: 'Undian / Hadiah'),
  ];

71
72
73
74
75
76
77
  @override
  Widget build(BuildContext context) {
    if (_checkBox == true) {
      _onPressed = () {
        if (!_formkey.currentState.validate()) {
          print("Failed");
        }
78
79
        Navigator.push(context, MaterialPageRoute(builder: (context) {
          return MaterialApp(home: MainScreen());
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
        }));
        _formkey.currentState.save();
        print(_latarBelakang);
        print(_alamatKantor);
        print(_bidangUsaha);
        print(_emailKantor);
        print(_jabatan);
        print(_namaPerusahaan);
        print(_noTelepon);
        print(_pekerjaan);
        print(_tujuanInvestasi);
      };
    }
    if (_checkBox == false) {
      _onPressed = null;
    }

    return MaterialApp(
98
99
100
101
102
103
104
105
106
107
108
109
110
111
        home: Scaffold(
      appBar: AppBar(
        backgroundColor: white,
        title: Row(
          mainAxisAlignment: MainAxisAlignment.start,
          children: <Widget>[
            IconButton(
                icon: Icon(
                  Icons.arrow_back,
                  color: primary,
                ),
                onPressed: () {
                  Navigator.push(context, MaterialPageRoute(
                    builder: (context) {
112
                      return MyApp();
113
114
115
116
117
                    },
                  ));
                }),
            Text('e-KYC Pemodal', style: titleTextStyle()),
          ],
118
        ),
119
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
156
      ),
      body: SingleChildScrollView(
        child: SafeArea(
          child: Container(
            child: Row(mainAxisAlignment: MainAxisAlignment.center, children: <
                Widget>[
              Column(
                children: [
                  // container checkpoint
                  Container(
                    key: Key('checkpoint'),
                    margin: const EdgeInsets.fromLTRB(0, 32, 0, 40),
                    child: Row(children: <Widget>[
                      Column(children: [
                        // container garis bulet
                        Container(
                            key: Key('container garis bulat checkpoint'),
                            child: Row(children: <Widget>[
                              buletanChecklistCheckpoint,
                              garisCheckpoint,
                              buletanChecklistCheckpoint,
                              garisCheckpoint,
                              buletanChecklistCheckpoint,
                              garisCheckpoint,
                              buletanChecklistCheckpoint,
                              garisCheckpoint,
                              buletanChecklistCheckpoint
                            ])),

                        //container text-nya
                        Container(
                          key: Key('container text checkpoint'),
                          margin: const EdgeInsets.fromLTRB(0, 16, 0, 0),
                          child: Row(
                              mainAxisAlignment: MainAxisAlignment.start,
                              mainAxisSize: MainAxisSize.min,
                              crossAxisAlignment: CrossAxisAlignment.start,
                              children: <Widget>[
157
                                Container(
158
159
160
161
162
                                  width: 72,
                                  child: Text(
                                    "Biodata",
                                    style: checkTextStyle(),
                                  ),
163
164
                                ),
                                Container(
165
166
167
168
                                  width: 80,
                                  child: Text(
                                    "Alamat",
                                    style: checkTextStyle(),
169
                                  ),
170
                                ),
171
                                Container(
172
                                  width: 80,
173
                                  child: Text(
174
175
                                    ' Biodata\nKeluarga',
                                    style: checkTextStyle(),
176
177
178
                                  ),
                                ),
                                Container(
179
180
181
182
                                  width: 64,
                                  child: Text(
                                    "   Data\nIdentitas",
                                    style: checkTextStyle(),
183
184
185
                                  ),
                                ),
                                Container(
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
                                  child: Text(
                                    "      Data\nPendukung",
                                    style: checkTextStyle(),
                                  ),
                                ),
                              ]),
                        )
                      ])
                    ]),
                  ),

                  // line
                  Padding(
                    padding: EdgeInsets.symmetric(horizontal: 10.0),
                    child: Container(
                      key: Key("line"),
                      height: 1.0,
                      width: 359,
                      color: primary,
                    ),
                  ),

                  // container form
                  Container(
                    child: Padding(
                      padding: const EdgeInsets.fromLTRB(0, 18, 0, 0),
                      child: Form(
                          key: _formkey,
                          child: Column(
                            children: <Widget>[
                              // biodata data identitas
                              Container(
                                key: Key('teksDataPendukung'),
                                width: 343,
                                child: Text(
                                  'Data Pendukung',
                                  style: miniTextStyle(),
                                ),
                              ),

                              // form latar belakang pend
                              Container(
                                child: Row(
                                  children: <Widget>[
                                    Column(children: <Widget>[
231
232
                                      Container(
                                        width: 343,
233
234
                                        margin: const EdgeInsets.fromLTRB(
                                            0, 12, 0, 0),
235
                                        child: Text(
236
                                          "Latar Belakang Pendidikan *",
237
238
239
                                          style: miniTitleTextStyle(),
                                        ),
                                      ),
240
241
                                      Container(
                                        width: 343,
242
243
244
245
246
247
248
249
250
                                        margin: EdgeInsets.fromLTRB(0, 4, 0, 0),
                                        child: TextFormField(
                                          key: Key('latarBelakangPend'),
                                          keyboardType: TextInputType.text,
                                          decoration: formInputDecoration(),
                                          validator: Validasi.validate,
                                          onSaved: (String latarBelakang) {
                                            _latarBelakang = latarBelakang;
                                          },
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
                              // checkbox sumber penghasilan
                              Container(
                                child: Column(
                                  mainAxisAlignment: MainAxisAlignment.start,
                                  children: <Widget>[
                                    Container(
                                      width: 343,
                                      margin: const EdgeInsets.fromLTRB(
                                          0, 12, 0, 0),
                                      child: Text(
                                        "Sumber Penghasilan *",
                                        style: miniTitleTextStyle(),
                                      ),
                                    ),
                                    Container(
                                      margin: EdgeInsets.fromLTRB(0, 4, 0, 0),
                                      width: 343,
                                      height: 450,
                                      child: ListView(
                                        key: Key("listViewCheckbox"),
                                        children: [
                                          ...notifikasiCheckbox
                                              .map(buildSingleCheckbox)
                                              .toList(),
                                        ],
                                      ),
                                    )
                                  ],
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
                              // form pekerjaan
                              Container(
                                child: Row(
                                  children: <Widget>[
                                    Column(children: <Widget>[
                                      Container(
                                        width: 343,
                                        margin: const EdgeInsets.fromLTRB(
                                            0, 12, 0, 0),
                                        child: Text(
                                          "Pekerjaan",
                                          style: miniTitleTextStyle(),
                                        ),
                                      ),
                                      Container(
                                        width: 343,
                                        margin: EdgeInsets.fromLTRB(0, 4, 0, 0),
                                        child: TextFormField(
                                          key: Key('pekerjaan'),
                                          keyboardType: TextInputType.text,
                                          decoration: formInputDecoration(),
                                          onSaved: (String pekerjaan) {
                                            _pekerjaan = pekerjaan;
                                          },
                                        ),
                                      ),
                                    ])
                                  ],
317
                                ),
318
319
320
321
322
323
324
325
326
327
                              ),

                              // form nama perusahaan
                              Container(
                                  child: Row(children: <Widget>[
                                Column(children: <Widget>[
                                  Container(
                                    width: 343,
                                    margin:
                                        const EdgeInsets.fromLTRB(0, 12, 0, 4),
328
                                    child: Text(
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
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
379
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
406
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
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
                                      "Nama Perusahaan",
                                      style: miniTitleTextStyle(),
                                    ),
                                  ),
                                  Container(
                                    width: 343,
                                    margin: EdgeInsets.fromLTRB(0, 4, 0, 0),
                                    child: TextFormField(
                                      key: Key('namaPerusahaan'),
                                      keyboardType: TextInputType.text,
                                      decoration: formInputDecoration(),
                                      onSaved: (String namaPerusahaan) {
                                        _namaPerusahaan = namaPerusahaan;
                                      },
                                    ),
                                  ),
                                ])
                              ])),

                              // form bidang usaha
                              Container(
                                  child: Row(children: <Widget>[
                                Column(children: <Widget>[
                                  Container(
                                    width: 343,
                                    margin:
                                        const EdgeInsets.fromLTRB(0, 12, 0, 4),
                                    child: Text(
                                      "Bidang Usaha",
                                      style: miniTitleTextStyle(),
                                    ),
                                  ),
                                  Container(
                                    width: 343,
                                    margin: EdgeInsets.fromLTRB(0, 4, 0, 0),
                                    child: TextFormField(
                                      key: Key('bidangUsaha'),
                                      keyboardType: TextInputType.text,
                                      decoration: formInputDecoration(),
                                      onSaved: (String bidangUsaha) {
                                        _bidangUsaha = bidangUsaha;
                                      },
                                    ),
                                  ),
                                ])
                              ])),

                              // form alamat kantor
                              Container(
                                  child: Row(children: <Widget>[
                                Column(children: <Widget>[
                                  Container(
                                    width: 343,
                                    margin:
                                        const EdgeInsets.fromLTRB(0, 12, 0, 4),
                                    child: Text(
                                      "Alamat Kantor",
                                      style: miniTitleTextStyle(),
                                    ),
                                  ),
                                  Container(
                                    width: 343,
                                    margin: EdgeInsets.fromLTRB(0, 4, 0, 0),
                                    child: TextFormField(
                                      key: Key('alamatKantor'),
                                      keyboardType: TextInputType.text,
                                      decoration: formInputDecoration(),
                                      onSaved: (String alamatKantor) {
                                        _alamatKantor = alamatKantor;
                                      },
                                    ),
                                  ),
                                ])
                              ])),

                              // form jabatan
                              Container(
                                  child: Row(children: <Widget>[
                                Column(children: <Widget>[
                                  Container(
                                    width: 343,
                                    margin:
                                        const EdgeInsets.fromLTRB(0, 12, 0, 4),
                                    child: Text(
                                      "Jabatan",
                                      style: miniTitleTextStyle(),
                                    ),
                                  ),
                                  Container(
                                    width: 343,
                                    margin: EdgeInsets.fromLTRB(0, 4, 0, 0),
                                    child: TextFormField(
                                      key: Key('jabatan'),
                                      keyboardType: TextInputType.text,
                                      decoration: formInputDecoration(),
                                      onSaved: (String jabatan) {
                                        _jabatan = jabatan;
                                      },
                                    ),
                                  ),
                                ])
                              ])),

                              // form nomor telpon kantor
                              Container(
                                  child: Row(children: <Widget>[
                                Column(children: <Widget>[
                                  Container(
                                    width: 343,
                                    margin:
                                        const EdgeInsets.fromLTRB(0, 12, 0, 4),
                                    child: Text(
                                      "Nomor Telepon Kantor",
                                      style: miniTitleTextStyle(),
                                    ),
                                  ),
                                  Container(
                                    width: 343,
                                    margin: EdgeInsets.fromLTRB(0, 4, 0, 0),
                                    child: TextFormField(
                                      key: Key('noTelepon'),
                                      keyboardType: TextInputType.phone,
                                      decoration: formInputDecoration(),
                                      onSaved: (String noTelepon) {
                                        _noTelepon = noTelepon;
                                      },
455
456
                                    ),
                                  ),
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
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
499
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
526
527
                                ])
                              ])),

                              // form email kantor
                              Container(
                                  child: Row(children: <Widget>[
                                Column(children: <Widget>[
                                  Container(
                                    width: 343,
                                    margin:
                                        const EdgeInsets.fromLTRB(0, 12, 0, 4),
                                    child: Text(
                                      "Email Kantor *",
                                      style: miniTitleTextStyle(),
                                    ),
                                  ),
                                  Container(
                                    width: 343,
                                    margin: EdgeInsets.fromLTRB(0, 4, 0, 0),
                                    child: TextFormField(
                                      key: Key('emailKantor'),
                                      keyboardType: TextInputType.emailAddress,
                                      decoration: formInputDecoration(),
                                      validator: ValidasiEmail.validate,
                                      onSaved: (String emailKantor) {
                                        _emailKantor = emailKantor;
                                      },
                                    ),
                                  ),
                                ])
                              ])),

                              // form tujuan investasi
                              Container(
                                  child: Row(children: <Widget>[
                                Column(children: <Widget>[
                                  Container(
                                    width: 343,
                                    margin:
                                        const EdgeInsets.fromLTRB(0, 12, 0, 4),
                                    child: Text(
                                      "Tujuan Investasi *",
                                      style: miniTitleTextStyle(),
                                    ),
                                  ),
                                  Container(
                                    width: 343,
                                    margin: EdgeInsets.fromLTRB(0, 4, 0, 0),
                                    child: TextFormField(
                                      key: Key('tujuanInvestasi'),
                                      keyboardType: TextInputType.text,
                                      decoration: formInputDecoration(),
                                      validator: Validasi.validate,
                                      onSaved: (String tujuanInvestasi) {
                                        _tujuanInvestasi = tujuanInvestasi;
                                      },
                                    ),
                                  ),
                                ])
                              ])),

                              // container text
                              Container(
                                margin: const EdgeInsets.fromLTRB(0, 24, 0, 0),
                                height: 416,
                                width: 343,
                                child: SingleChildScrollView(
                                  child: Text(
                                      'Loremipsum Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat',
                                      key: Key('loremIpsum'),
                                      style: miniTitleTextStyle()),
528
                                ),
529
530
531
532
533
534
535
536
537
                              ),

                              // checkbox syarat ketentuan
                              Container(
                                width: 343,
                                height: 56,
                                margin: EdgeInsets.fromLTRB(0, 16, 0, 0),
                                child: Row(children: [
                                  Container(
538
                                      child: Checkbox(
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
                                    value: _checkBox,
                                    checkColor: white,
                                    activeColor: primary,
                                    onChanged: (bool value) {
                                      setState(() {
                                        _checkBox = value;
                                      });
                                    },
                                  )),
                                  Container(
                                    width: 285,
                                    child: Text(
                                      'Saya menjamin keaslian data yang telah diberikan. Dengan ini saya menyatakan telah menyutujui syarat dan ketentuan yang berlaku.',
                                      style: miniTitleTextStyle(),
                                    ),
                                  )
                                ]),
                              ),

                              // button
                              Container(
                                margin: const EdgeInsets.fromLTRB(0, 42, 0, 16),
                                child: Row(
                                  children: <Widget>[
563
                                    Container(
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
                                      margin: const EdgeInsets.fromLTRB(
                                          0, 0, 16, 0),
                                      child: SizedBox(
                                        width: 163.5,
                                        height: 52,
                                        child: ElevatedButton(
                                          key: Key('sebelumnyaButton'),
                                          style: ElevatedButton.styleFrom(
                                            primary: red1,
                                            onPrimary: secondary,
                                          ),
                                          onPressed: () {
                                            if (!_formkey.currentState
                                                .validate()) {
                                              print("Failed");
                                            }
                                            Navigator.push(context,
                                                MaterialPageRoute(
                                                    builder: (context) {
                                              return DataIdentitas();
                                            }));
                                            // _formkey.currentState.save();
                                            // print(_noKTP);
                                            // print(_noPWP);
                                          },
                                          child: Text(
                                            "Sebelumnya",
                                            style: TextStyle(
                                              fontWeight: FontWeight.bold,
                                              fontSize: 14,
                                              fontFamily: 'Inter',
                                              color: white,
596
597
598
599
                                            ),
                                          ),
                                        ),
                                      ),
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
                                    ),
                                    Container(
                                      // margin: const EdgeInsets.fromLTRB(0, 42, 0, 16),
                                      child: SizedBox(
                                        width: 163.5,
                                        height: 52,
                                        child: ElevatedButton(
                                          key: Key('selanjutnyaButton'),
                                          style: ElevatedButton.styleFrom(
                                            primary: primary,
                                            onPrimary: secondary,
                                          ),
                                          onPressed: _onPressed,
                                          child: Text(
                                            "Selanjutnya",
                                            style: TextStyle(
                                              fontWeight: FontWeight.bold,
                                              fontSize: 14,
                                              fontFamily: 'Inter',
                                              color: white,
620
621
622
                                            ),
                                          ),
                                        ),
623
624
625
                                      ),
                                    )
                                  ],
626
                                ),
627
628
629
630
                              ),
                            ],
                          )),
                    ),
631
                  )
632
633
634
                ],
              )
            ]),
635
636
          ),
        ),
637
638
      ),
    ));
639
640
  }

641
  Widget get buletanChecklistCheckpoint {
642
643
644
645
    return Container(
      height: 24,
      width: 24,
      decoration: BoxDecoration(
646
          color: primary, borderRadius: BorderRadius.circular(100)),
647
648
649
650
651
652
653
654
      child: Icon(
        Icons.check_outlined,
        color: white,
        size: 16,
      ),
    );
  }

655
  Widget get buletanCheckpoint {
656
    return Container(
657
658
659
660
661
662
663
664
665
        height: 24,
        width: 24,
        decoration: BoxDecoration(
            border: Border.all(
              width: 2,
              style: BorderStyle.solid,
              color: primary,
            ),
            borderRadius: BorderRadius.circular(100)));
666
667
  }

668
  Widget get garisCheckpoint {
669
670
671
672
673
674
    return Container(
      height: 3,
      width: 54,
      color: primary,
    );
  }
675

676
677
678
679
680
681
682
683
684
685
  Widget buildSingleCheckbox(CheckboxNotificationSetting notification) =>
      grupCheckbox(
        notification: notification,
        onClicked: () {
          setState(() {
            final newValue = !notification.value;
            notification.value = newValue;
          });
        },
      );
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

  Widget grupCheckbox({
    @required CheckboxNotificationSetting notification,
    @required VoidCallback onClicked,
  }) =>
      ListTile(
        onTap: onClicked,
        leading: Checkbox(
          value: notification.value,
          onChanged: (valueCheckbox) => onClicked(),
        ),
        title: Text(
          notification.title,
          style: checkboxTextStyle(),
        ),
      );
}

class CheckboxNotificationSetting {
  String title;
  bool value;

  CheckboxNotificationSetting({
    @required this.title,
    this.value = false,
  });
712
}