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()
: Column(children: [
SingleChildScrollView(
padding: const EdgeInsets.all(16),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@ -243,12 +244,13 @@ class _TaskRequestDetailsViewState extends State<TaskRequestDetailsView> {
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),
),
],
),

@ -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;
}
}
}

Loading…
Cancel
Save