list tile theme
codenya 1 tapi hasilnya bisa bedaplain_text
a month ago
1.6 kB
2
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; }); }, ), ),