Enhancements

pull/2/head
zaid_daoud 2 years ago
parent ffaa340d9d
commit 6aab5e6750

@ -408,8 +408,26 @@ class RequestDetailsPage extends StatelessWidget {
), ),
); );
} else { } else {
return Center( return Column(
child: ASubTitle(_subtitle.noDateFound), children: [
Expanded(
child: Center(
child: ASubTitle(_subtitle.noDateFound),
),
),
if (_userProvider.user.type == UsersTypes.engineer)
Center(
child: Padding(
padding: const EdgeInsets.all(32),
child: AButton(
text: "Create Report",
onPressed: () {
Navigator.of(context).push(MaterialPageRoute(builder: (_) => CreateServiceReport(request: serviceRequest)));
},
),
),
),
],
); );
} }
}, },

@ -19,7 +19,6 @@ class ServiceReportAssistantEmployeeMenu extends StatelessWidget {
stateCode: menuProvider.stateCode, stateCode: menuProvider.stateCode,
onRefresh: () async { onRefresh: () async {
await menuProvider.getAssistantEmployees(); await menuProvider.getAssistantEmployees();
print("ccccccccccccccc");
}, },
child: AssistantEmployeeMenu( child: AssistantEmployeeMenu(
initialStatus: initialValue, initialStatus: initialValue,

Loading…
Cancel
Save