|
|
|
@ -10,6 +10,7 @@ import 'package:test_sa/new_views/app_style/app_color.dart';
|
|
|
|
import 'package:test_sa/new_views/common_widgets/app_filled_button.dart';
|
|
|
|
import 'package:test_sa/new_views/common_widgets/app_filled_button.dart';
|
|
|
|
import 'package:test_sa/new_views/common_widgets/default_app_bar.dart';
|
|
|
|
import 'package:test_sa/new_views/common_widgets/default_app_bar.dart';
|
|
|
|
import 'package:test_sa/views/widgets/date_and_time/date_picker.dart';
|
|
|
|
import 'package:test_sa/views/widgets/date_and_time/date_picker.dart';
|
|
|
|
|
|
|
|
import 'package:test_sa/views/widgets/item_views/info_text_widget.dart';
|
|
|
|
import 'package:test_sa/views/widgets/loaders/lazy_loading.dart';
|
|
|
|
import 'package:test_sa/views/widgets/loaders/lazy_loading.dart';
|
|
|
|
import 'package:test_sa/views/widgets/loaders/no_data_found.dart';
|
|
|
|
import 'package:test_sa/views/widgets/loaders/no_data_found.dart';
|
|
|
|
|
|
|
|
|
|
|
|
@ -169,17 +170,15 @@ class SwipeHistoryCard extends StatelessWidget {
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Text(swipeHistory.swipeTime!.toServiceRequestDetailsFormat,
|
|
|
|
Text(swipeHistory.swipeTime!.toServiceRequestDetailsFormat, textAlign: TextAlign.end, style: AppTextStyles.tinyFont.copyWith(color: AppColor.textStyleColor(context))),
|
|
|
|
textAlign: TextAlign.end, style: AppTextStyles.tinyFont.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral50)),
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
8.height,
|
|
|
|
8.height,
|
|
|
|
'${context.translation.swipeTypeName}: ${swipeHistory.swipeTypeName?.cleanupWhitespace.capitalizeFirstOfEach}'.bodyText(context),
|
|
|
|
InfoTextWidget(label: context.translation.swipeTypeName, value: swipeHistory.swipeTypeName?.cleanupWhitespace.capitalizeFirstOfEach),
|
|
|
|
'${context.translation.userName}: ${swipeHistory.userName}'.bodyText(context),
|
|
|
|
InfoTextWidget(label: context.translation.userName, value: swipeHistory.userName, showEmptyValue: true),
|
|
|
|
'${context.translation.siteName}: ${swipeHistory.siteName}'.bodyText(context),
|
|
|
|
InfoTextWidget(label: context.translation.siteName, value: swipeHistory.siteName, showEmptyValue: true),
|
|
|
|
'${context.translation.pointName}: ${swipeHistory.pointName}'.bodyText(context),
|
|
|
|
InfoTextWidget(label: context.translation.pointName, value: swipeHistory.pointName, showEmptyValue: true),
|
|
|
|
8.height,
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
).toShadowContainer(context, showShadow: showShadow);
|
|
|
|
).toShadowContainer(context, padding: 16);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|