弹窗样式

narakuyang
2021-12-20 / 0 评论 / 15 阅读 / 正在检测是否收录...
  firstIntoKol() {
    showDialog(
      context: context,
      builder: (context) => SafeArea(
        child: Dialog(
          alignment: Alignment.center,
          backgroundColor: Colors.transparent,
          elevation: 0,
          insetAnimationCurve: Curves.easeInToLinear,
          child: Column(
            children: [
              Container(
                width: 400.w,
                height: 600.h,
                decoration: BoxDecoration(
                  color: appcolor.white,
                  borderRadius: BorderRadius.circular(12),
                ),
                child: Column(
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: [
                    Padding(
                      padding:
                          EdgeInsets.only(left: 16.w, right: 16.w, top: 12.h),
                      child: Text(
                        apptext.whatkol,
                        style: TextStyle(
                            fontWeight: FontWeight.bold, fontSize: 15.sp),
                      ),
                    ),
                    SizedBox(
                      height: 3.h,
                    ),
                    Padding(
                      padding: EdgeInsets.only(left: 16.w, right: 16.w),
                      child: Column(
                        crossAxisAlignment: CrossAxisAlignment.start,
                        children:
                            apptext.kolques.map((e) => Text('$e')).toList(),
                      ),
                    ),
                    SizedBox(
                      height: 8.h,
                    ),
                  ],
                ),
              ),
              SizedBox(
                height: 20.h,
              ),
              GestureDetector(
                onTap: () {
                  Get.back();
                },
                child: Container(
                  alignment: Alignment.center,
                  width: 35.w,
                  height: 35.h,
                  child: Image.asset(
                    'assets/logo/chose.png',
                    color: appcolor.white,
                  ),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
0

评论

博主关闭了所有页面的评论