showHow2MeasureDialog static method
dynamic
showHow2MeasureDialog(
- BuildContext context,
- dynamic callBack(
- bool done
)
)
Implementation
static showHow2MeasureDialog(BuildContext context, Function(bool done) callBack) {
Widget content = Container(
width: double.infinity,
decoration: const BoxDecoration(
color: Colors.white,
// gradient: LinearGradient(colors: [
// Color(0xFFE9EEFA),
// Color(0xFFF7F8FB),
// ])
),
child: Stack(
children: [
Container(
padding: EdgeInsets.only(left: 32.w, right: 32.w),
child: Column(
children: [
SizedBox(
height: 48.h,
),
Text(
"How many is one cup?",
style: GoogleFonts.poppins(fontWeight: FontWeight.w500, fontSize: 18.sp, color: const Color(0xff20294C)),
),
SizedBox(
height: 10.h,
),
Image.asset(
"images/bg_mesure_cup.png",
width: 150.w,
height: 110.h,
),
SizedBox(
height: 10.h,
),
Image.asset("images/bg_tabsp_cups.png"),
SizedBox(
height: 10.h,
),
Text(
"1 cup is a standard measurement unit, equal to 250 grams in volume, 16 tablespoons.",
style: GoogleFonts.poppins(
fontSize: 14.sp,
fontWeight: FontWeight.w400,
color: const Color(0xff6F6C90),
),
),
SizedBox(
height: 48.h,
),
],
),
),
Container(
margin: EdgeInsets.only(top: 8.h, right: 16.w),
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
const Icon(Icons.clear).prop(onTap: () {
Navigator.of(context).pop();
})
],
),
)
],
),
);
DialogUtils.showCustomWelcomeDialog(context, EdgeInsets.only(left: 10.w, right: 10.w), content, () => null);
}