王亚玲 2 years ago
parent 6ed26f43c4
commit a531c26d74

@ -189,6 +189,7 @@ class _UserPageState extends State<UserPage> {
children: [ children: [
GestureDetector( GestureDetector(
onTap: () { onTap: () {
if (!userProvider.isLogin) { if (!userProvider.isLogin) {
Get.to(() => const LoginPage()); Get.to(() => const LoginPage());
} }

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

Loading…
Cancel
Save