confirm static method
Implementation
static Widget confirm({
required String message,
required String source,
}) {
return Container(
decoration: const BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(15)),
),
padding: EdgeInsets.all(20.spMin),
child: Wrap(
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: Texts.subtitle2(
message,
textAlign: TextAlign.center,
textOverflow: TextOverflow.visible,
),
),
),
Align(
alignment: Alignment.center,
child: Buttons.defaultButton(
widget: Texts.subtitle2(
'OK',
),
handler: () {
Get.back(result: true);
},
),
),
],
),
);
}