showOptionDialog2 static method
Implementation
static Future<bool?> showOptionDialog2(BuildContext context, String title, List<ItemOption> values) {
return showDialog(context: context, barrierDismissible: true,
builder: (context) => Align(
alignment: Alignment.center,
child: Container(width: 0.8.sw,
height: 160.sp * (values.length + 1) - 40.sp,
margin: EdgeInsets.only(top: 120.sp, bottom: 40.sp),
decoration: BoxDecoration(color: Colors.white,
borderRadius: BorderRadius.circular(30.sp)),
child: SingleChildScrollView(
child: Column(mainAxisSize: MainAxisSize.min,
children: createItems2(context, title, values))))));
}