|
|
|
@ -52,8 +52,9 @@ class ItemDetailViewGridItem extends StatelessWidget {
|
|
|
|
final String? value;
|
|
|
|
final String? value;
|
|
|
|
final String? type;
|
|
|
|
final String? type;
|
|
|
|
final bool isNeedToShowEmptyDivider;
|
|
|
|
final bool isNeedToShowEmptyDivider;
|
|
|
|
|
|
|
|
final int maxLine;
|
|
|
|
|
|
|
|
|
|
|
|
ItemDetailViewGridItem(this.index, this.title, this.value, {Key? key, this.isNeedToShowEmptyDivider = false, this.type = ""}) : super(key: key);
|
|
|
|
ItemDetailViewGridItem(this.index, this.title, this.value, {Key? key, this.isNeedToShowEmptyDivider = false, this.type = "", this.maxLine = 6}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
@ -76,10 +77,11 @@ class ItemDetailViewGridItem extends StatelessWidget {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: isNeedToShowEmptyDivider
|
|
|
|
child: isNeedToShowEmptyDivider
|
|
|
|
? Container()
|
|
|
|
? SizedBox()
|
|
|
|
: Column(
|
|
|
|
: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
title != null ? Flexible(child: "$title:".toText12Auto(isBold: true, color: const Color(0xff2BB8A6))) : Container(),
|
|
|
|
title != null ? Flexible(child: "$title:".toText12Auto(isBold: true, color: const Color(0xff2BB8A6))) : Container(),
|
|
|
|
4.width,
|
|
|
|
4.width,
|
|
|
|
@ -87,7 +89,7 @@ class ItemDetailViewGridItem extends StatelessWidget {
|
|
|
|
? type!.toLowerCase() == "table"
|
|
|
|
? type!.toLowerCase() == "table"
|
|
|
|
? getStringFromJSON(value!)
|
|
|
|
? getStringFromJSON(value!)
|
|
|
|
// : Flexible(child: (value!.isEmpty ? "--" : value).toString().toText12Auto(color: MyColors.normalTextColor, maxLine: 5))
|
|
|
|
// : Flexible(child: (value!.isEmpty ? "--" : value).toString().toText12Auto(color: MyColors.normalTextColor, maxLine: 5))
|
|
|
|
: (value!.isEmpty ? "--" : value).toString().toText12Auto(color: MyColors.normalTextColor, maxLine: 6)
|
|
|
|
: (value!.isEmpty ? "--" : value).toString().toText12Auto(color: MyColors.normalTextColor, maxLine: maxLine)
|
|
|
|
: Container(),
|
|
|
|
: Container(),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|