优化决定了对话框逻辑

This commit is contained in:
yuanjunyao 2023-12-02 11:37:40 +08:00
parent d6ea57859c
commit 9355fc2016

View File

@ -41,12 +41,12 @@ class SelectView extends GetView<SelectController> {
} }
Widget buildSelect(BuildContext context) { Widget buildSelect(BuildContext context) {
return Stack( return _ShowUp(
child: Stack(
children: [ children: [
Positioned( Positioned(
top: 2.h, top: 2.h,
left: 412.w, left: 412.w,
child: _ShowUp(
child: Container( child: Container(
width: 360.w, width: 360.w,
height: 164.h, height: 164.h,
@ -63,9 +63,9 @@ class SelectView extends GetView<SelectController> {
), ),
), ),
), ),
),
buildSelectOccupation(context), buildSelectOccupation(context),
], ],
),
); );
} }
@ -287,22 +287,24 @@ class SelectView extends GetView<SelectController> {
), ),
), ),
), ),
controller.recommend.value Positioned(
? buildRecommendConfirmBtn(
context, controller.selectOccupation.value!.name!)
: buildConfirmBtn(
context, controller.selectOccupation.value!.name!),
controller.showOccupationName.value
? Container()
: Positioned(
left: 90.w, left: 90.w,
top: 62.h, top: 62.h,
child: AnimatedVisibilityWidget(
isVisible: !controller.showOccupationName.value,
animationWidgetBuilder: AnimatedVisibilityWidget.fadeAnimationWidgetBuilder,
child: Container( child: Container(
width: 999.w, width: 999.w,
height: 558.h, height: 558.h,
color: const Color(0x8C02184B), color: const Color(0x8C02184B),
), ),
), ),
),
controller.recommend.value
? buildRecommendConfirmBtn(
context, controller.selectOccupation.value!.name!)
: buildConfirmBtn(
context, controller.selectOccupation.value!.name!),
RSizedBox( RSizedBox(
child: Stack( child: Stack(
children: controller.questionAnswers.map((element) { children: controller.questionAnswers.map((element) {