修复评价图片不显示的问题

pull/1/head
张萌 2 years ago
parent 2ea5f4b409
commit 1afe02c205

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

@ -1450,12 +1450,35 @@ class $AssetsNewIconGen {
/// File path: assets/newIcon/jfjs.png /// File path: assets/newIcon/jfjs.png
AssetGenImage get jfjs => const AssetGenImage('assets/newIcon/jfjs.png'); AssetGenImage get jfjs => const AssetGenImage('assets/newIcon/jfjs.png');
/// File path: assets/newIcon/normal.png
AssetGenImage get normal => const AssetGenImage('assets/newIcon/normal.png');
/// File path: assets/newIcon/normal_unselect.png
AssetGenImage get normalUnselect =>
const AssetGenImage('assets/newIcon/normal_unselect.png');
/// File path: assets/newIcon/satisfied.png
AssetGenImage get satisfied =>
const AssetGenImage('assets/newIcon/satisfied.png');
/// File path: assets/newIcon/satisfied_unselect.png
AssetGenImage get satisfiedUnselect =>
const AssetGenImage('assets/newIcon/satisfied_unselect.png');
/// File path: assets/newIcon/sfbs.png /// File path: assets/newIcon/sfbs.png
AssetGenImage get sfbs => const AssetGenImage('assets/newIcon/sfbs.png'); AssetGenImage get sfbs => const AssetGenImage('assets/newIcon/sfbs.png');
/// File path: assets/newIcon/srzf.png /// File path: assets/newIcon/srzf.png
AssetGenImage get srzf => const AssetGenImage('assets/newIcon/srzf.png'); AssetGenImage get srzf => const AssetGenImage('assets/newIcon/srzf.png');
/// File path: assets/newIcon/unsatisfied.png
AssetGenImage get unsatisfied =>
const AssetGenImage('assets/newIcon/unsatisfied.png');
/// File path: assets/newIcon/unsatisfied_unselect.png
AssetGenImage get unsatisfiedUnselect =>
const AssetGenImage('assets/newIcon/unsatisfied_unselect.png');
/// File path: assets/newIcon/wallet_balance.png /// File path: assets/newIcon/wallet_balance.png
AssetGenImage get walletBalance => AssetGenImage get walletBalance =>
const AssetGenImage('assets/newIcon/wallet_balance.png'); const AssetGenImage('assets/newIcon/wallet_balance.png');

@ -10,7 +10,7 @@ import 'package:aku_new_community/extensions/widget_list_ext.dart';
import 'package:aku_new_community/pages/life_pay/life_pay_page.dart'; import 'package:aku_new_community/pages/life_pay/life_pay_page.dart';
import 'package:aku_new_community/pages/share_pay_page/share_pay_page.dart'; import 'package:aku_new_community/pages/share_pay_page/share_pay_page.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
@Deprecated('弃用')
class LifePayChoosePage extends StatefulWidget { class LifePayChoosePage extends StatefulWidget {
const LifePayChoosePage({Key? key}) : super(key: key); const LifePayChoosePage({Key? key}) : super(key: key);

@ -51,7 +51,9 @@ class _TaskEvaluationDialogState extends State<TaskEvaluationDialog> {
.make(), .make(),
Spacer(), Spacer(),
IconButton( IconButton(
onPressed: () {}, onPressed: () {
Get.back();
},
icon: Icon( icon: Icon(
CupertinoIcons.xmark, CupertinoIcons.xmark,
size: 24.w, size: 24.w,
@ -62,9 +64,28 @@ class _TaskEvaluationDialogState extends State<TaskEvaluationDialog> {
40.hb, 40.hb,
Row( Row(
children: [ children: [
_evaluationIcon(2, '不满意', Assets.icons.dissatisfied.path), 32.wb,
_evaluationIcon(6, '一般', Assets.icons.normal.path), _evaluationIcon(
_evaluationIcon(10, '满意', Assets.icons.satisfied.path), 2,
'不满意',
_currentIndex == 2
? Assets.newIcon.unsatisfied.path
: Assets.newIcon.unsatisfiedUnselect.path),
Spacer(),
_evaluationIcon(
6,
'一般',
_currentIndex == 6
? Assets.newIcon.normal.path
: Assets.newIcon.normalUnselect.path),
Spacer(),
_evaluationIcon(
10,
'满意',
_currentIndex == 10
? Assets.newIcon.satisfied.path
: Assets.newIcon.satisfiedUnselect.path),
32.wb,
], ],
), ),
56.hb, 56.hb,
@ -84,7 +105,9 @@ class _TaskEvaluationDialogState extends State<TaskEvaluationDialog> {
80.hb, 80.hb,
BottomPluralButtonWidget( BottomPluralButtonWidget(
leftTitle: '暂不评价', leftTitle: '暂不评价',
onLeftTap: () {}, onLeftTap: () {
Get.back();
},
rightTitle: '确认提交', rightTitle: '确认提交',
onRightTap: () async { onRightTap: () async {
if (_currentIndex == null) { if (_currentIndex == null) {
@ -114,19 +137,16 @@ class _TaskEvaluationDialogState extends State<TaskEvaluationDialog> {
_currentIndex = index; _currentIndex = index;
setState(() {}); setState(() {});
}, },
child: AnimatedContainer(
duration: Duration(milliseconds: 300),
width: _currentIndex == index ? 120.w : 80.w,
height: _currentIndex == index ? 120.w : 80.w,
child: Column( child: Column(
children: [ children: [
Image.asset(iconPath, Image.asset(iconPath,width: 120.w,height: 120.w,),
width: double.infinity, height: double.infinity),
10.hb, 10.hb,
text.text.size(32.sp).color(Colors.black.withOpacity(0.65)).make(), text.text
.size(32.sp)
.color(Colors.black.withOpacity(0.65))
.make(),
], ],
), ),
),
); );
} }
} }

@ -1,3 +1,4 @@
import 'package:aku_new_community/ui/function_and_service/task/dialogs/task_evaluation_dialog.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';

@ -1,3 +1,4 @@
import 'package:aku_new_community/extensions/num_ext.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -298,7 +299,7 @@ class _AddHousePageState extends State<AddHousePage> {
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: _pickedHouses children: _pickedHouses
.mapIndexed((currentValue, index) => .mapIndexed((currentValue, index) =>
_propertyOwnerTile(currentValue, index)) _propertyOwnerTile(currentValue, index,))
.toList() .toList()
.sepWidget(separate: BeeDivider.horizontal()), .sepWidget(separate: BeeDivider.horizontal()),
), ),
@ -465,6 +466,7 @@ class _AddHousePageState extends State<AddHousePage> {
children: [ children: [
32.w.heightBox, 32.w.heightBox,
Container( Container(
key: UniqueKey(),
width: double.infinity, width: double.infinity,
height: 60.w, height: 60.w,
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
@ -472,11 +474,28 @@ class _AddHousePageState extends State<AddHousePage> {
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8.w), borderRadius: BorderRadius.circular(8.w),
color: Colors.black.withOpacity(0.06)), color: Colors.black.withOpacity(0.06)),
child: '产权信息${(index + 1).toChinese}' child: Row(
children: [
'产权信息${(index + 1).toChinese}'
.text .text
.size(26.sp) .size(26.sp)
.color(Colors.black.withOpacity(0.45)) .color(Colors.black.withOpacity(0.45))
.make(), .make(),
Spacer(),
IconButton(
padding: EdgeInsets.zero,
constraints: BoxConstraints(minWidth: 20.w, minHeight: 20.w),
onPressed: () {
_pickedHouses.removeAt(index);
setState(() {});
},
icon: Icon(
CupertinoIcons.minus,
size: 30.w,
),
),10.wb,
],
),
), ),
GestureDetector( GestureDetector(
onTap: () async { onTap: () async {

@ -33,8 +33,8 @@ class HouseHeadCard extends StatelessWidget {
'当前房屋'.text.black.size(28.sp).make(), '当前房屋'.text.black.size(28.sp).make(),
32.w.heightBox, 32.w.heightBox,
GestureDetector( GestureDetector(
onTap: () { onTap: () async {
Get.to(() => MyHousePage()); await Get.to(() => MyHousePage());
if (onChanged != null) onChanged!(); if (onChanged != null) onChanged!();
}, },
child: Row( child: Row(

Loading…
Cancel
Save