当前位置: 首页 > news >正文

Flutter:图片在弹窗外部的UI布局

图片在弹窗外部的UI布局

在这里插入图片描述

// 签到
void signIn() async{
  if(signInStatus) return Loading.toast('今日已签到');
  signinAmount = await HomeApi.signin();
  if(signinAmount.amount == null) return;
  refreshController.requestRefresh();
  _initData();
  showGeneralDialog(
    context: Get.context!,
    pageBuilder: (BuildContext buildContext, Animation<double> animation, Animation<double> secondaryAnimation) {
      return TDAlertDialog(
        title: '',
        backgroundColor: Colors.transparent,
        padding: const EdgeInsets.all(0),
        buttonWidget:<Widget>[].toRow(),
        contentWidget:<Widget>[
          <Widget>[
            SizedBox(height: 200.w,),
            TextWidget.body('今日签到成功',size: 36.sp,color: AppTheme.colorfff,weight: FontWeight.bold,),
            <Widget>[
              TDImage(assetUrl: 'assets/img/home9.png',width: 44.w,height: 44.w,type: TDImageType.square,),
              SizedBox(width: 10.w,),
              TextWidget.body('星火+${signinAmount.amount}',size: 28.sp,color: AppTheme.colorfff,),
            ].toRow(mainAxisAlignment: MainAxisAlignment.center)
            .paddingHorizontal(30.w)
            .backgroundColor(AppTheme.blockTwoBgColor)
            .height(88.w)
            .marginOnly(top: 20.w,bottom: 30.w)
            .clipRRect(all: 10.w),

            TDButton(
            text: '确认',
            isBlock: true,
            width: 690.w,
            height: 76.w,
            padding: const EdgeInsets.all(0),
            margin: const EdgeInsets.all(0),
            style: TDButtonStyle(
              backgroundColor:  AppTheme.primary,
              textColor: Colors.white,
              radius: BorderRadius.circular(10.w),
            ),
            textStyle: TextStyle(
              fontSize: 28.sp,
              fontWeight: FontWeight.w600,
            ),
            onTap: () {
              Navigator.pop(Get.context!);
            },
          ),

          ].toColumn(crossAxisAlignment: CrossAxisAlignment.center)
          .paddingHorizontal(30.w)
          .tight(width: 550.w,height: 500.w)
          .decorated(
            borderRadius: BorderRadius.circular(20.w),
            border: Border.all(color: AppTheme.primary,width: 1),
          )
          .backgroundColor(AppTheme.blockBgColor).positioned(top: 170.w),

          TDImage(assetUrl: 'assets/img/home11.png',width: 368.w,height: 302.w,type: TDImageType.square,).positioned(left: 90.w),
        ].toStack().tight(width: 650.w,height: 700.w)
        .marginOnly(top: 20.w),
      );
    },
  );
  update(["sign_in"]);
}

相关文章:

  • Java学习手册:Java集合框架详解
  • 基于 Maven 构建的 Thingsboard 3.8.1 项目结构
  • 【漫话机器学习系列】197.外核(Out of Core)
  • 【笔记ing】AI大模型-02开发环境搭建
  • matplotlib数据展示
  • spring cloud微服务断路器详解及主流断路器框架对比
  • 论文精度:YOLOMG:基于视觉的无人机间检测算法——外观与像素级运动融合详解
  • 215. 数组中的第K个最大元素
  • ChatRex: Taming Multimodal LLM for Joint Perception and Understanding 论文理解和翻译
  • 智能车摄像头开源—9 动态权、模糊PID、速度决策、路径优化
  • 优先级队列(1)——处理数据流的中位数
  • Introducing Machine Learning with SAP Leonardo
  • StringBuffer类基本使用
  • MySQL 中查询 VARCHAR 类型 JSON 数据的
  • Mysql 分库分表
  • Mybatis快速入门
  • 使用ZSH美化Windows系统Git Bash
  • NHANES指标推荐:NHHR
  • C语言数据结构:树的实现、前序、中序、后序遍历
  • 运用instanceof判断Animal a是否为Dog类和是否为cat类
  • wordpress 函数教程/南京网站设计优化公司
  • 卖网店哪个平台可靠/网站优化外包费用
  • 做网站开发学什么软件/免费视频外链生成推荐
  • 工程建设标准最新查询网站/搜狗网站收录入口
  • 网站开发验收确 认书/搜索关键词排名查询
  • 做物流网站模块/今日新闻7月1日