|
|
|
@ -24,14 +24,12 @@ class AppDialog extends Dialog {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Container(
|
|
|
|
|
|
|
|
|
|
margin:EdgeInsets.only(left: 95.w,top: 452.w),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// EdgeInsets.symmetric(horizontal: 95.w,vertical: 452.w),
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 95.w, vertical: 452.w),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
image:
|
|
|
|
|
DecorationImage(image: AssetImage(Assets.images.bouncedbg.path,))),
|
|
|
|
|
image: DecorationImage(
|
|
|
|
|
image: AssetImage(
|
|
|
|
|
Assets.images.bouncedbg.path,
|
|
|
|
|
))),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
32.hb,
|
|
|
|
@ -99,22 +97,22 @@ class AppDialog extends Dialog {
|
|
|
|
|
|
|
|
|
|
_getBotton(String bContent, context) {
|
|
|
|
|
return GestureDetector(
|
|
|
|
|
onTap: () async{
|
|
|
|
|
var res=await apiClient.request(API.app.trialVip);
|
|
|
|
|
if(res.code==0){
|
|
|
|
|
onTap: () async {
|
|
|
|
|
var res = await apiClient.request(API.app.trialVip);
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
// showDialog(context: context, builder: (context){
|
|
|
|
|
// return const AppDialog();
|
|
|
|
|
// });
|
|
|
|
|
CloudToast.show(res.msg);
|
|
|
|
|
// BoxShadow.show(res.msg);
|
|
|
|
|
} else{
|
|
|
|
|
} else {
|
|
|
|
|
CloudToast.show(res.msg);
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 64.w),
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 155.w,vertical: 28.w),
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 155.w, vertical: 28.w),
|
|
|
|
|
height: 88.w,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(12.w),
|
|
|
|
@ -124,7 +122,7 @@ _getBotton(String bContent, context) {
|
|
|
|
|
begin: Alignment.centerRight)),
|
|
|
|
|
child: Text(
|
|
|
|
|
bContent,
|
|
|
|
|
style: TextStyle(fontSize: 28.sp,fontWeight:FontWeight.bold),
|
|
|
|
|
style: TextStyle(fontSize: 28.sp, fontWeight: FontWeight.bold),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|