|
|
|
@ -8,9 +8,10 @@ class InfoTextWidget extends StatelessWidget {
|
|
|
|
final String label;
|
|
|
|
final String label;
|
|
|
|
final bool showEmptyValue;
|
|
|
|
final bool showEmptyValue;
|
|
|
|
final bool showArrow;
|
|
|
|
final bool showArrow;
|
|
|
|
|
|
|
|
final bool copyValue;
|
|
|
|
final bool isMsg;
|
|
|
|
final bool isMsg;
|
|
|
|
|
|
|
|
|
|
|
|
InfoTextWidget({required this.label, this.value, this.showEmptyValue = false, this.showArrow = false, this.isMsg = false, Key? key}) : super(key: key);
|
|
|
|
InfoTextWidget({required this.label, this.value, this.showEmptyValue = false, this.copyValue = false, this.showArrow = false, this.isMsg = false, Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
@ -33,6 +34,16 @@ class InfoTextWidget extends StatelessWidget {
|
|
|
|
"arrow_right".toSvgAsset(width: 17, color: AppColor.primary10),
|
|
|
|
"arrow_right".toSvgAsset(width: 17, color: AppColor.primary10),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
} else if (!showArrow) {
|
|
|
|
|
|
|
|
// text = Row(
|
|
|
|
|
|
|
|
// mainAxisSize: MainAxisSize.min,
|
|
|
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
|
|
|
|
|
// children: [
|
|
|
|
|
|
|
|
// Flexible(child: text),
|
|
|
|
|
|
|
|
// const SizedBox(width: 4),
|
|
|
|
|
|
|
|
// Icon(Icons.copy_rounded, color: AppColor.loadingColor(context), size: 12),
|
|
|
|
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return text;
|
|
|
|
return text;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -45,7 +56,7 @@ class InfoTextLabelWidget extends StatelessWidget {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget text;
|
|
|
|
Widget text;
|
|
|
|
text = Text(label, style: AppTextStyles.bodyText2.copyWith(color: AppColor.lightTextColor(context)));
|
|
|
|
text = Text(label, style: AppTextStyles.bodyText2.copyWith(color: AppColor.lightTextColor(context)));
|
|
|
|
return text;
|
|
|
|
return text;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|