///todo deleted
// import 'package:flutter/material.dart';
// import 'package:provider/provider.dart';
// import 'package:test_sa/controllers/providers/api/status_drop_down/report/service_report_types_provider.dart';
// import 'package:test_sa/controllers/providers/api/user_provider.dart';
// import 'package:test_sa/controllers/providers/settings/setting_provider.dart';
// import 'package:test_sa/models/lookup.dart';
// import 'package:test_sa/views/widgets/loaders/loading_manager.dart';
// import 'package:test_sa/views/widgets/status/single_status_menu.dart';
//
// class ServiceReportTypeMenu extends StatelessWidget {
//   final Function(Lookup) onSelect;
//   final Lookup initialValue;
//
//   const ServiceReportTypeMenu({Key? key, this.onSelect, this.initialValue}) : super(key: key);
//
//   @override
//   Widget build(BuildContext context) {
//     SettingProvider settingProvider = Provider.of<SettingProvider>(context);
//     UserProvider userProvider = Provider.of<UserProvider>(context);
//     ServiceReportTypesProvider menuProvider = Provider.of<ServiceReportTypesProvider>(context);
//     return LoadingManager(
//         isLoading: menuProvider.isLoading,
//         isFailedLoading: menuProvider.types == null,
//         stateCode: menuProvider.stateCode,
//         onRefresh: () async {
//           menuProvider.reset();
//           await menuProvider.getTypes(user: userProvider.user, host: settingProvider.host);
//           onSelect(initialValue ?? menuProvider.types?.last);
//         },
//         child: SingleStatusMenu(
//           initialStatus: initialValue ?? menuProvider.types?.last,
//           statuses: menuProvider.types,
//           onSelect: onSelect,
//         ));
//   }
// }
