From 2bc8dc94e9b764f56d4f1d7acf9483609bdef31b Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Wed, 8 Jul 2026 16:50:00 +0300 Subject: [PATCH] improvement. --- .../tasks/task_request_detail_view.dart | 12 +++++++----- .../widgets/item_views/info_text_widget.dart | 17 ++++++++++++++--- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/lib/modules/tm_module/tasks/task_request_detail_view.dart b/lib/modules/tm_module/tasks/task_request_detail_view.dart index ca6f02e8..347dd114 100644 --- a/lib/modules/tm_module/tasks/task_request_detail_view.dart +++ b/lib/modules/tm_module/tasks/task_request_detail_view.dart @@ -103,6 +103,7 @@ class _TaskRequestDetailsViewState extends State { ? const ALoading() : Column(children: [ SingleChildScrollView( + padding: const EdgeInsets.all(16), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ @@ -243,12 +244,13 @@ class _TaskRequestDetailsViewState extends State { return RichText( text: TextSpan( text: "${context.translation.totalWorkingTime}: ", - style: TextStyle( - fontSize: 14.toScreenWidth, fontWeight: FontWeight.w500, fontStyle: FontStyle.normal, decoration: TextDecoration.none, color: context.isDark ? AppColor.neutral10 : AppColor.neutral20), + style: AppTextStyles.bodyText2.copyWith(color: AppColor.lightTextColor(context)), + // TextStyle( + // fontSize: 14.toScreenWidth, fontWeight: FontWeight.w500, fontStyle: FontStyle.normal, decoration: TextDecoration.none, color: context.isDark ? AppColor.neutral10 : AppColor.neutral20), children: [ - TextSpan(text: "$totalHourString ", style: AppTextStyles.bodyText), - const WidgetSpan( - child: Icon(Icons.info_outline_rounded, color: AppColor.primary10, size: 14), + TextSpan(text: "$totalHourString ", style: AppTextStyles.bodyText2.copyWith(color: AppColor.lightTextColor(context))), + WidgetSpan( + child: Icon(Icons.info_outline_rounded, color: AppColor.loadingColor(context), size: 14), ), ], ), diff --git a/lib/views/widgets/item_views/info_text_widget.dart b/lib/views/widgets/item_views/info_text_widget.dart index 06e15e91..2224728b 100644 --- a/lib/views/widgets/item_views/info_text_widget.dart +++ b/lib/views/widgets/item_views/info_text_widget.dart @@ -8,9 +8,10 @@ class InfoTextWidget extends StatelessWidget { final String label; final bool showEmptyValue; final bool showArrow; + final bool copyValue; 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 Widget build(BuildContext context) { @@ -33,6 +34,16 @@ class InfoTextWidget extends StatelessWidget { "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; } @@ -45,7 +56,7 @@ class InfoTextLabelWidget extends StatelessWidget { @override Widget build(BuildContext context) { 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; } -} \ No newline at end of file +}