showBottomSheet static method
void
showBottomSheet({
- required List<
String> titleList, - bool isShowArrow = false,
- BottomSheetClickCallback? onClickSheet,
Implementation
static void showBottomSheet({required List<String> titleList,bool isShowArrow = false,BottomSheetClickCallback? onClickSheet}){
var sheetList = titleList.map((title){
return ListTile(
title: Text(title),
trailing: isShowArrow?Image.asset('assets/images/right_arrow.png'):null,
onTap: (){
onClickSheet?.call(titleList.indexOf(title),title);
Get.back();
},
);
}).toList();
Get.bottomSheet(Wrap(
children: ListTile.divideTiles(tiles:sheetList,context: Get.context).toList(),
),backgroundColor: Colors.white);
}