|
|
|
@ -6,6 +6,7 @@ import 'package:image_picker/image_picker.dart'; |
|
|
|
import 'package:problem_check_system/app/core/pages/widgets/custom_app_bar.dart'; |
|
|
|
import 'package:problem_check_system/app/core/pages/widgets/custom_app_bar.dart'; |
|
|
|
import 'package:problem_check_system/app/features/enterprise/domain/entities/enterprise.dart'; |
|
|
|
import 'package:problem_check_system/app/features/enterprise/domain/entities/enterprise.dart'; |
|
|
|
import 'package:problem_check_system/app/features/problem/presentation/controllers/problem_form_controller.dart'; |
|
|
|
import 'package:problem_check_system/app/features/problem/presentation/controllers/problem_form_controller.dart'; |
|
|
|
|
|
|
|
import 'package:problem_check_system/app/core/utils/constants/globals.dart'; |
|
|
|
|
|
|
|
|
|
|
|
class ProblemFormPage extends GetView<ProblemFormController> { |
|
|
|
class ProblemFormPage extends GetView<ProblemFormController> { |
|
|
|
// 构造函数,接收只读标志 |
|
|
|
// 构造函数,接收只读标志 |
|
|
|
@ -510,30 +511,31 @@ class ProblemFormPage extends GetView<ProblemFormController> { |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
// 右侧的按钮 |
|
|
|
if (isShowAddEnterprise) |
|
|
|
ElevatedButton( |
|
|
|
// 右侧的按钮 |
|
|
|
onPressed: () { |
|
|
|
ElevatedButton( |
|
|
|
controller.navigateToAddForm(); |
|
|
|
onPressed: () { |
|
|
|
}, |
|
|
|
controller.navigateToAddForm(); |
|
|
|
style: ElevatedButton.styleFrom( |
|
|
|
}, |
|
|
|
backgroundColor: const Color(0xFF42A5F5), |
|
|
|
style: ElevatedButton.styleFrom( |
|
|
|
foregroundColor: Colors.white, |
|
|
|
backgroundColor: const Color(0xFF42A5F5), |
|
|
|
padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 12.h), |
|
|
|
foregroundColor: Colors.white, |
|
|
|
tapTargetSize: MaterialTapTargetSize.shrinkWrap, |
|
|
|
padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 12.h), |
|
|
|
// [!!!] 移除按钮自身的阴影,因为它现在在卡片内部 |
|
|
|
tapTargetSize: MaterialTapTargetSize.shrinkWrap, |
|
|
|
// elevation: 0, |
|
|
|
// [!!!] 移除按钮自身的阴影,因为它现在在卡片内部 |
|
|
|
// [!!!] 自定义形状,只保留左下角圆角,以完美贴合卡片边缘 |
|
|
|
// elevation: 0, |
|
|
|
shape: RoundedRectangleBorder( |
|
|
|
// [!!!] 自定义形状,只保留左下角圆角,以完美贴合卡片边缘 |
|
|
|
borderRadius: BorderRadius.only( |
|
|
|
shape: RoundedRectangleBorder( |
|
|
|
bottomLeft: Radius.circular(12.r), |
|
|
|
borderRadius: BorderRadius.only( |
|
|
|
|
|
|
|
bottomLeft: Radius.circular(12.r), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
child: Text( |
|
|
|
|
|
|
|
"新增企业", |
|
|
|
|
|
|
|
style: TextStyle(fontSize: 13.sp, fontWeight: FontWeight.bold), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
child: Text( |
|
|
|
|
|
|
|
"新增企业", |
|
|
|
|
|
|
|
style: TextStyle(fontSize: 13.sp, fontWeight: FontWeight.bold), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|