You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

118 lines
4.0 KiB

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:huixiang/generated/l10n.dart';
import 'package:huixiang/utils/flutter_utils.dart';
import 'package:huixiang/utils/font_weight.dart';
import 'package:huixiang/view_widget/round_button.dart';
class SignInWidget extends StatefulWidget {
final String day;
final String integral;
SignInWidget(this.day, this.integral);
@override
State<StatefulWidget> createState() {
return _SignInWidget();
}
}
class _SignInWidget extends State<SignInWidget> {
@override
Widget build(BuildContext context) {
return Container(
width: 269.w,
height:370.h * AppUtils.textScale(context),
child: Stack(
children: [
Positioned(
left: 2.w,
right: 2.w,
bottom: 0,
top: 65.h,
child: Container(
width: 218.w,
height: 210.h * AppUtils.textScale(context),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8.w),
image: DecorationImage(
fit: BoxFit.fill,
image: AssetImage("assets/image/pop_background.webp"),
),
),
// padding: EdgeInsets.only(top:8.h),
child: Container(
padding: EdgeInsets.symmetric(vertical: 13.h),
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Image.asset(
"assets/image/icon_sign_success.webp",
width: 80,
height: 80,
),
Padding(padding:EdgeInsets.only(top:8.h,bottom:12.h),
child: Text(
S.of(context).qiandaowancheng,
style: TextStyle(
color: Color(0xFF353535),
fontSize: 16.sp,
fontWeight: MyFontWeight.medium,
),
),),
Padding(padding:EdgeInsets.only(bottom:12.h),
child: Text(
S.of(context).ninyilianxuqiandaotian(widget.day),
style: TextStyle(
color: Color(0xFF353535),
fontSize: 14.sp,
fontWeight: MyFontWeight.regular,
),
),),
Expanded(child: Text(
S.of(context).jiajifen(widget.integral),
style: TextStyle(
color: Color(0xFFFF7A1A),
fontSize: 15.sp,
fontWeight: MyFontWeight.semi_bold,
),
)),
RoundButton(
text: S.of(context).queren,
textColor: Color(0xFF188451),
width:220.w,
padding: EdgeInsets.symmetric(vertical:8.h),
fontSize: 16.sp,
fontWeight: MyFontWeight.semi_bold,
backgroup: Color(0xFFFFFFFF),
radius: 17.w,
callback: () {
SmartDialog.dismiss();
},
),
],
),
),
),
),
// Positioned(
// top: 0,
// child: Container(
// child: Image.asset(
// "assets/image/icon_sign_ok.webp",
// fit: BoxFit.contain,
// width: 223.w,
// height: 110.h * AppUtils.textScale(context),
// ),
// ),
// ),
],
),
);
}
}