|
|
@ -21,103 +21,105 @@ class LoginTips extends StatelessWidget { |
|
|
|
// width: 0.7867.sw, |
|
|
|
// width: 0.7867.sw, |
|
|
|
// height: 0.7867.sw / (Platform.isAndroid ? 0.86 : 0.9), |
|
|
|
// height: 0.7867.sw / (Platform.isAndroid ? 0.86 : 0.9), |
|
|
|
width:double.infinity, |
|
|
|
width:double.infinity, |
|
|
|
height:MediaQuery.of(context).size.width / 1, |
|
|
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal:28.w), |
|
|
|
margin: EdgeInsets.symmetric(horizontal:28.w), |
|
|
|
padding: EdgeInsets.symmetric(vertical: 20.h, horizontal: 24.w), |
|
|
|
padding: EdgeInsets.symmetric(vertical: 20.h, horizontal: 24.w), |
|
|
|
decoration: BoxDecoration( |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: Colors.white, |
|
|
|
color: Colors.white, |
|
|
|
borderRadius: BorderRadius.circular(8), |
|
|
|
borderRadius: BorderRadius.circular(8), |
|
|
|
), |
|
|
|
), |
|
|
|
child: Column( |
|
|
|
child: IntrinsicHeight( |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly, |
|
|
|
child: Column( |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly, |
|
|
|
mainAxisSize: MainAxisSize.max, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
mainAxisSize: MainAxisSize.max, |
|
|
|
Image.asset( |
|
|
|
children: [ |
|
|
|
"assets/image/icon_login_tips.webp", |
|
|
|
Image.asset( |
|
|
|
// width: 0.7867.sw * 0.6, |
|
|
|
"assets/image/icon_login_tips.webp", |
|
|
|
// height: 0.7867.sw * 0.6 * 0.7, |
|
|
|
// width: 0.7867.sw * 0.6, |
|
|
|
fit: BoxFit.fill, |
|
|
|
// height: 0.7867.sw * 0.6 * 0.7, |
|
|
|
), |
|
|
|
fit: BoxFit.fill, |
|
|
|
SizedBox( |
|
|
|
), |
|
|
|
height: 20.w, |
|
|
|
SizedBox( |
|
|
|
), |
|
|
|
height: 20.w, |
|
|
|
Container( |
|
|
|
), |
|
|
|
alignment: Alignment.centerLeft, |
|
|
|
Container( |
|
|
|
child: Text( |
|
|
|
alignment: Alignment.centerLeft, |
|
|
|
S.of(context).ninweidenglu, |
|
|
|
child: Text( |
|
|
|
textAlign: TextAlign.start, |
|
|
|
S.of(context).ninweidenglu, |
|
|
|
|
|
|
|
textAlign: TextAlign.start, |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
|
|
|
color: Colors.black, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
SizedBox( |
|
|
|
|
|
|
|
height: 3.w, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Text( |
|
|
|
|
|
|
|
S.of(context).weilegeiningenghaodefuwu, |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14.sp, |
|
|
|
fontSize: 12.sp, |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
color: Color(0xFF727272), |
|
|
|
color: Colors.black, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
height: 20.w, |
|
|
|
height: 3.w, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Text( |
|
|
|
|
|
|
|
S.of(context).weilegeiningenghaodefuwu, |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
|
|
|
color: Color(0xFF727272), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
Row( |
|
|
|
SizedBox( |
|
|
|
mainAxisSize: MainAxisSize.max, |
|
|
|
height: 20.w, |
|
|
|
children: [ |
|
|
|
), |
|
|
|
Expanded( |
|
|
|
Row( |
|
|
|
child: InkWell( |
|
|
|
mainAxisSize: MainAxisSize.max, |
|
|
|
onTap: () { |
|
|
|
children: [ |
|
|
|
SmartDialog.dismiss(); |
|
|
|
Expanded( |
|
|
|
}, |
|
|
|
child: InkWell( |
|
|
|
child: BorderText( |
|
|
|
onTap: () { |
|
|
|
text: S.of(context).quxiao, |
|
|
|
SmartDialog.dismiss(); |
|
|
|
textColor: Color(0xFF32A060), |
|
|
|
}, |
|
|
|
borderWidth: 1.w, |
|
|
|
child: BorderText( |
|
|
|
borderColor: Color(0xFF32A060), |
|
|
|
text: S.of(context).quxiao, |
|
|
|
padding: EdgeInsets.all(12.w), |
|
|
|
textColor: Color(0xFF32A060), |
|
|
|
fontSize: 16.sp, |
|
|
|
borderWidth: 1.w, |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
borderColor: Color(0xFF32A060), |
|
|
|
radius: 4, |
|
|
|
padding: EdgeInsets.all(12.w), |
|
|
|
), |
|
|
|
fontSize: 16.sp, |
|
|
|
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
|
|
|
radius: 4, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
flex: 1, |
|
|
|
), |
|
|
|
), |
|
|
|
flex: 1, |
|
|
|
SizedBox( |
|
|
|
), |
|
|
|
width: 13.w, |
|
|
|
SizedBox( |
|
|
|
), |
|
|
|
width: 13.w, |
|
|
|
Expanded( |
|
|
|
), |
|
|
|
child: InkWell( |
|
|
|
Expanded( |
|
|
|
onTap: () { |
|
|
|
child: InkWell( |
|
|
|
click?.call(); |
|
|
|
onTap: () { |
|
|
|
SmartDialog.dismiss(); |
|
|
|
click?.call(); |
|
|
|
}, |
|
|
|
SmartDialog.dismiss(); |
|
|
|
child: RoundButton( |
|
|
|
}, |
|
|
|
text: S.of(context).qudenglu, |
|
|
|
child: RoundButton( |
|
|
|
textColor: Colors.white, |
|
|
|
text: S.of(context).qudenglu, |
|
|
|
padding: EdgeInsets.all(12.w), |
|
|
|
textColor: Colors.white, |
|
|
|
fontSize: 16.sp, |
|
|
|
padding: EdgeInsets.all(12.w), |
|
|
|
backgroup: Color(0xFF32A060), |
|
|
|
fontSize: 16.sp, |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
backgroup: Color(0xFF32A060), |
|
|
|
radius: 4, |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
), |
|
|
|
radius: 4, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
flex: 1, |
|
|
|
), |
|
|
|
), |
|
|
|
flex: 1, |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
onWillPop: () async { |
|
|
|
onWillPop: () async { |
|
|
|
return Future.value(false); |
|
|
|
return Future.value(false); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|