fix: 动态ADDITIONAL_TYPE_RESERVE异常
This commit is contained in:
@ -83,6 +83,7 @@ Widget addWidget(item, context, type, {floor = 1}) {
|
|||||||
);
|
);
|
||||||
case 'ADDITIONAL_TYPE_RESERVE':
|
case 'ADDITIONAL_TYPE_RESERVE':
|
||||||
return dynamicProperty[type].state != -1
|
return dynamicProperty[type].state != -1
|
||||||
|
? dynamicProperty[type].title != null
|
||||||
? Padding(
|
? Padding(
|
||||||
padding: const EdgeInsets.only(top: 8),
|
padding: const EdgeInsets.only(top: 8),
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
@ -110,9 +111,15 @@ Widget addWidget(item, context, type, {floor = 1}) {
|
|||||||
.labelMedium!
|
.labelMedium!
|
||||||
.fontSize),
|
.fontSize),
|
||||||
children: [
|
children: [
|
||||||
TextSpan(text: dynamicProperty[type].desc1['text']),
|
if (dynamicProperty[type].desc1 != null)
|
||||||
|
TextSpan(
|
||||||
|
text:
|
||||||
|
dynamicProperty[type].desc1['text']),
|
||||||
const TextSpan(text: ' '),
|
const TextSpan(text: ' '),
|
||||||
TextSpan(text: dynamicProperty[type].desc2['text']),
|
if (dynamicProperty[type].desc2 != null)
|
||||||
|
TextSpan(
|
||||||
|
text:
|
||||||
|
dynamicProperty[type].desc2['text']),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
@ -122,6 +129,7 @@ Widget addWidget(item, context, type, {floor = 1}) {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
: const SizedBox()
|
||||||
: const SizedBox();
|
: const SizedBox();
|
||||||
case 'ADDITIONAL_TYPE_GOODS':
|
case 'ADDITIONAL_TYPE_GOODS':
|
||||||
return Padding(
|
return Padding(
|
||||||
|
|||||||
Reference in New Issue
Block a user