import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:wow_english/common/extension/string_extension.dart'; import 'package:wow_english/route/route.dart'; class RepeatAfterContentDialog extends Dialog { const RepeatAfterContentDialog(this.onLeftTap, {super.key}); final Function() onLeftTap; @override Widget build(BuildContext context) { super.build(context); return Center( child: Column( children: [ 20.verticalSpace, Image.asset( 'photo_pause'.assetPng, height: 202.h, width: 321.w, ), Row( mainAxisAlignment: MainAxisAlignment.center, children: [ GestureDetector( onTap: () { popPage(); onLeftTap(); }, child: Container( decoration: BoxDecoration( image: DecorationImage( image:AssetImage('bacun'.assetPng) ) ), height: 44.h, width: 137.w, alignment: Alignment.center, child: Text( '保存并退出', textAlign: TextAlign.center, style: TextStyle( color: const Color(0xFF333333), fontSize: 17.sp ), ), ), ), 33.horizontalSpace, GestureDetector( onTap: () { popPage(); }, child: Container( decoration: BoxDecoration( image: DecorationImage( image:AssetImage('back_study'.assetPng) ) ), height: 44.h, width: 137.w, alignment: Alignment.center, child: Text( '返回继续学习', textAlign: TextAlign.center, style: TextStyle( color: Colors.white, fontSize: 17.sp ), ), ), ) ], ) ], ), ); } }