| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- import 'package:flutter/cupertino.dart';
- import 'package:flutter/material.dart';
- import 'package:flutter_screenutil/flutter_screenutil.dart';
- import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
- import '../resource/colors.gen.dart';
- void showRecordMaxDialog(String contentTxt, {required String tag}) {
- if (SmartDialog.checkExist(tag: tag)) {
- return;
- }
- SmartDialog.show(
- tag: tag,
- builder: (_) {
- return Container(
- padding: EdgeInsets.all(16.w),
- width: 280.w,
- decoration: BoxDecoration(
- color: Colors.white,
- borderRadius: BorderRadius.circular(12),
- ),
- child: IntrinsicHeight(
- child: Column(
- children: [
- SizedBox(height: 24.h),
- Text(
- contentTxt,
- style: TextStyle(
- fontSize: 15.sp,
- color: ColorName.primaryTextColor,
- fontWeight: FontWeight.bold),
- ),
- SizedBox(height: 35.h),
- GestureDetector(
- onTap: () {
- SmartDialog.dismiss();
- },
- child: Container(
- padding: EdgeInsets.symmetric(vertical: 8.h),
- decoration: BoxDecoration(
- color: ColorName.colorPrimary,
- borderRadius: BorderRadius.circular(8),
- ),
- child: Center(
- child: Text(
- '确定',
- style:
- TextStyle(fontSize: 16.sp, color: ColorName.white),
- ),
- ),
- ),
- ),
- SizedBox(height: 4.h),
- ],
- ),
- ),
- );
- });
- }
|