reminder static method
Implementation
static Widget reminder({
required String message,
required String source,
String btnText = "OK",
}) {
return Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.all(
Radius.circular(15.r),
),
color: Get.theme.colorScheme.background,
),
padding: EdgeInsets.all(20.spMin),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Align(
alignment: Alignment.center,
child: SvgPicture.asset(
source,
height: 100.h,
),
),
Padding(
padding: EdgeInsets.only(top: 10.h),
child: Align(
alignment: Alignment.center,
child: Padding(
padding: EdgeInsets.only(top: 10.h),
child: Texts.subtitle2(
message,
textAlign: TextAlign.center,
textOverflow: TextOverflow.visible,
),
),
),
),
btnText.isEmpty
? const SizedBox()
: Align(
alignment: Alignment.center,
child: Buttons.defaultButton(
widget: Texts.subtitle2(btnText),
handler: () {
Get.back();
},
),
),
],
),
);
}