list tile theme

codenya 1 tapi hasilnya bisa beda
mail@pastecode.io avatar
unknown
plain_text
a year ago
1.6 kB
4
Indexable
Never
ListTileTheme(
                      // selectedTileColor: kOrangeColor,
                      // selectedColor: kOrangeColor,
                      tileColor: kOrangeColor,
                      child: ExpansionTile(
                        collapsedBackgroundColor: kWhiteColor, //posisi awal
                        collapsedIconColor: kBlackColor,
                        title: Text(
                          'SUPRESSO',
                          style: TextStyle(
                              color:
                                  _customText ? kDarkGreyColor : kBlackColor),
                        ),
                        trailing: Icon(
                          _customIcon
                              ? Icons.keyboard_arrow_up
                              : Icons.keyboard_arrow_down,
                        ),
                        //CUSTOM CONTAINER U/ DISKON, KETERANGAN + TOMBOL CLAIM
                        children: [
                          SizedBox(height: 10),
                          ContainerVoucher(
                              //method ada di folder widget
                              number: '1',
                              title: 'Diskon 10% (DISC 10%)',
                              subtitle: 'Tukarkan dengan 10 point'),
                        ],
                        onExpansionChanged: (bool expanded) {
                          setState(() {
                            _customIcon = expanded;
                            _customText = expanded;
                          });
                        },
                      ),
                    ),