improvement.

ui_ux_rollout_merge
Sikander Saleem 4 weeks ago
parent 6747808dde
commit 2bc8dc94e9

@ -103,6 +103,7 @@ class _TaskRequestDetailsViewState extends State<TaskRequestDetailsView> {
? const ALoading() ? const ALoading()
: Column(children: [ : Column(children: [
SingleChildScrollView( SingleChildScrollView(
padding: const EdgeInsets.all(16),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
@ -243,12 +244,13 @@ class _TaskRequestDetailsViewState extends State<TaskRequestDetailsView> {
return RichText( return RichText(
text: TextSpan( text: TextSpan(
text: "${context.translation.totalWorkingTime}: ", text: "${context.translation.totalWorkingTime}: ",
style: TextStyle( style: AppTextStyles.bodyText2.copyWith(color: AppColor.lightTextColor(context)),
fontSize: 14.toScreenWidth, fontWeight: FontWeight.w500, fontStyle: FontStyle.normal, decoration: TextDecoration.none, color: context.isDark ? AppColor.neutral10 : AppColor.neutral20), // TextStyle(
// fontSize: 14.toScreenWidth, fontWeight: FontWeight.w500, fontStyle: FontStyle.normal, decoration: TextDecoration.none, color: context.isDark ? AppColor.neutral10 : AppColor.neutral20),
children: [ children: [
TextSpan(text: "$totalHourString ", style: AppTextStyles.bodyText), TextSpan(text: "$totalHourString ", style: AppTextStyles.bodyText2.copyWith(color: AppColor.lightTextColor(context))),
const WidgetSpan( WidgetSpan(
child: Icon(Icons.info_outline_rounded, color: AppColor.primary10, size: 14), child: Icon(Icons.info_outline_rounded, color: AppColor.loadingColor(context), size: 14),
), ),
], ],
), ),

@ -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;
} }
} }
Loading…
Cancel
Save