|
|
|
@ -13,6 +13,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/loaders/app_loading.dart';
|
|
|
|
import 'package:test_sa/views/widgets/loaders/app_loading.dart';
|
|
|
|
|
|
|
|
import 'package:test_sa/views/widgets/loaders/no_data_found.dart';
|
|
|
|
|
|
|
|
|
|
|
|
import 'traf_request_model.dart';
|
|
|
|
import 'traf_request_model.dart';
|
|
|
|
|
|
|
|
|
|
|
|
@ -51,30 +52,32 @@ class _TrafRequestDetailPageState extends State<TrafRequestDetailPage> {
|
|
|
|
builder: (_, isLoading, __) {
|
|
|
|
builder: (_, isLoading, __) {
|
|
|
|
if (isLoading) return const ALoading();
|
|
|
|
if (isLoading) return const ALoading();
|
|
|
|
TrafRequestProvider trafProvider = Provider.of<TrafRequestProvider>(context, listen: false);
|
|
|
|
TrafRequestProvider trafProvider = Provider.of<TrafRequestProvider>(context, listen: false);
|
|
|
|
return Column(
|
|
|
|
return trafProvider.trafRequestDataModel == null
|
|
|
|
children: [
|
|
|
|
? const NoDataFound().center
|
|
|
|
ListView(
|
|
|
|
: Column(
|
|
|
|
padding: const EdgeInsets.all(16),
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
ListView(
|
|
|
|
requesterInformation(trafProvider.trafRequestDataModel!),
|
|
|
|
padding: const EdgeInsets.all(16),
|
|
|
|
12.height,
|
|
|
|
children: [
|
|
|
|
requestInformation(trafProvider.trafRequestDataModel!),
|
|
|
|
requesterInformation(trafProvider.trafRequestDataModel!),
|
|
|
|
12.height,
|
|
|
|
12.height,
|
|
|
|
assetInformation(trafProvider.trafRequestDataModel!),
|
|
|
|
requestInformation(trafProvider.trafRequestDataModel!),
|
|
|
|
],
|
|
|
|
12.height,
|
|
|
|
).expanded,
|
|
|
|
assetInformation(trafProvider.trafRequestDataModel!),
|
|
|
|
// // if (isEngineer)
|
|
|
|
],
|
|
|
|
// FooterActionButton.footerContainer(
|
|
|
|
).expanded,
|
|
|
|
// context: context,
|
|
|
|
// // if (isEngineer)
|
|
|
|
// child: AppFilledButton(
|
|
|
|
// FooterActionButton.footerContainer(
|
|
|
|
// buttonColor: AppColor.primary10,
|
|
|
|
// context: context,
|
|
|
|
// label: "Update",
|
|
|
|
// child: AppFilledButton(
|
|
|
|
// onPressed: () {
|
|
|
|
// buttonColor: AppColor.primary10,
|
|
|
|
// Navigator.pushNamed(context, UpdateTrafRequestPage.id);
|
|
|
|
// label: "Update",
|
|
|
|
// }),
|
|
|
|
// onPressed: () {
|
|
|
|
// ),
|
|
|
|
// Navigator.pushNamed(context, UpdateTrafRequestPage.id);
|
|
|
|
],
|
|
|
|
// }),
|
|
|
|
);
|
|
|
|
// ),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
));
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|