commonBottomSheet static method
dynamic
commonBottomSheet({
- dynamic body,
- dynamic backgroundColor,
Implementation
static commonBottomSheet({
body,
backgroundColor,
}) {
return Get.bottomSheet(
body ??
Container(
padding: EdgeInsets.all(margin_10),
decoration: BoxDecoration(
color: CommonColors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(radius_10),
topRight: Radius.circular(radius_10),
)),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
CustomButton.customButton(
buttonText: "light Theme",
onClick: () {
Get.changeTheme(ThemeData.light());
},
),
CommonWidgets.sizedBox(height: height_10),
CustomButton.customButton(
buttonText: "dark Theme",
onClick: () {
Get.changeTheme(ThemeData.dark());
},
)
],
),
),
backgroundColor: backgroundColor ?? CommonColors.white,
isScrollControlled: true);
}