|
|
@@ -8,7 +8,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
|
|
import 'package:lottie/lottie.dart';
|
|
|
|
|
|
-void privacyDialog() {
|
|
|
+void privacyDialog({required Function onAgree, required Function onDisagree}) {
|
|
|
const tag = 'privacyDialog';
|
|
|
SmartDialog.show(
|
|
|
tag: tag,
|
|
|
@@ -25,20 +25,25 @@ void privacyDialog() {
|
|
|
child: Column(
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
children: [
|
|
|
- Container(
|
|
|
- margin: EdgeInsets.only(left: 16.w, top: 16.h),
|
|
|
- width: 28.w,
|
|
|
- height: 28.w,
|
|
|
- decoration: ShapeDecoration(
|
|
|
- color: Color(0xFF2A3E55),
|
|
|
- shape: RoundedRectangleBorder(
|
|
|
- borderRadius: BorderRadius.circular(86.r),
|
|
|
- ),
|
|
|
- image: DecorationImage(
|
|
|
- image: Assets.images.iconPrivateClose.provider(),
|
|
|
- ),
|
|
|
- ),
|
|
|
- ),
|
|
|
+ GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ onDisagree();
|
|
|
+ SmartDialog.dismiss(tag: tag);
|
|
|
+ },
|
|
|
+ child: Container(
|
|
|
+ margin: EdgeInsets.only(left: 16.w, top: 16.h),
|
|
|
+ width: 28.w,
|
|
|
+ height: 28.w,
|
|
|
+ decoration: ShapeDecoration(
|
|
|
+ color: Color(0xFF2A3E55),
|
|
|
+ shape: RoundedRectangleBorder(
|
|
|
+ borderRadius: BorderRadius.circular(86.r),
|
|
|
+ ),
|
|
|
+ image: DecorationImage(
|
|
|
+ image: Assets.images.iconPrivateClose.provider(),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ )),
|
|
|
SizedBox(
|
|
|
height: 45.h,
|
|
|
),
|
|
|
@@ -119,28 +124,29 @@ void privacyDialog() {
|
|
|
),
|
|
|
GestureDetector(
|
|
|
onTap: () {
|
|
|
-
|
|
|
+ onAgree();
|
|
|
+ SmartDialog.dismiss(tag: tag);
|
|
|
},
|
|
|
child: Container(
|
|
|
- width: 316.w,
|
|
|
- height: 48.h,
|
|
|
- decoration: ShapeDecoration(
|
|
|
- color: Color(0xFF0279FB),
|
|
|
- shape: RoundedRectangleBorder(
|
|
|
- borderRadius: BorderRadius.circular(24.r),
|
|
|
- ),
|
|
|
- ),
|
|
|
- child: Center(
|
|
|
- child: Text(
|
|
|
- 'Start',
|
|
|
- style: TextStyle(
|
|
|
- color: Colors.white,
|
|
|
- fontSize: 16.sp,
|
|
|
- fontWeight: FontWeight.w500,
|
|
|
+ width: 316.w,
|
|
|
+ height: 48.h,
|
|
|
+ decoration: ShapeDecoration(
|
|
|
+ color: Color(0xFF0279FB),
|
|
|
+ shape: RoundedRectangleBorder(
|
|
|
+ borderRadius: BorderRadius.circular(24.r),
|
|
|
+ ),
|
|
|
),
|
|
|
- ),
|
|
|
- ),
|
|
|
- )),
|
|
|
+ child: Center(
|
|
|
+ child: Text(
|
|
|
+ 'Start',
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.white,
|
|
|
+ fontSize: 16.sp,
|
|
|
+ fontWeight: FontWeight.w500,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ )),
|
|
|
],
|
|
|
),
|
|
|
],
|