|
|
|
|
@ -17,7 +17,7 @@ import '../../../../../../controllers/providers/api/all_requests_provider.dart';
|
|
|
|
|
import 'components/room_tabs_widget.dart';
|
|
|
|
|
|
|
|
|
|
class RecurrentWorkOrderView extends StatefulWidget {
|
|
|
|
|
static const String id = "/recurrent_wo";
|
|
|
|
|
static const String routeName = "/recurrent_wo";
|
|
|
|
|
final int? taskId;
|
|
|
|
|
|
|
|
|
|
RecurrentWorkOrderView({Key? key, required this.taskId}) : super(key: key);
|
|
|
|
|
@ -51,7 +51,7 @@ class _RecurrentWorkOrderViewState extends State<RecurrentWorkOrderView> {
|
|
|
|
|
body: allRequestsProvider!.isLoading
|
|
|
|
|
? const ALoading()
|
|
|
|
|
: requestProvider.recurrentWoData != null
|
|
|
|
|
? Stack(
|
|
|
|
|
? Stack (
|
|
|
|
|
children: [
|
|
|
|
|
SingleChildScrollView(
|
|
|
|
|
child: Column(
|
|
|
|
|
@ -128,7 +128,7 @@ void _updateTask({required BuildContext context, required int status}) async {
|
|
|
|
|
status: status,
|
|
|
|
|
).whenComplete((){
|
|
|
|
|
if(status==1){// when click complete then this request remove from the list and status changes to closed..
|
|
|
|
|
//TODO some issues data not properly refreshed need to check waseem
|
|
|
|
|
allRequestsProvider.reset();
|
|
|
|
|
allRequestsProvider.getAllRequests(context,typeTransaction: 5);
|
|
|
|
|
}
|
|
|
|
|
allRequestsProvider.recurrentWoData?.recurrentWoTimerModel=null;
|
|
|
|
|
|