///todo deleted
// import 'package:flutter/material.dart';
// import 'package:provider/provider.dart';
// import 'package:test_sa/controllers/providers/api/status_drop_down/report/service_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 ServiceAssetTypeMenu extends StatelessWidget {
//   final Function(Lookup) onSelect;
//   final Lookup initialValue;
//
//   const ServiceAssetTypeMenu({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);
//     ServiceStatusProvider _menuProvider = Provider.of<ServiceStatusProvider>(context);
//     return LoadingManager(
//         isLoading: _menuProvider.isLoading,
//         isFailedLoading: _menuProvider.statuses == null,
//         stateCode: _menuProvider.stateCode,
//         onRefresh: () async {
//           _menuProvider.reset();
//           await _menuProvider.getTypes(user: _userProvider.user, host: _settingProvider.host);
//         },
//         child: SingleStatusMenu(
//           initialStatus: initialValue,
//           statuses: _menuProvider.statuses,
//           onSelect: onSelect,
//         ));
//   }
// }
