2024-09-02 ほぼOK
This commit is contained in:
@ -15,8 +15,14 @@ import 'package:gifunavi/model/event.dart';
|
||||
|
||||
|
||||
class TeamController extends GetxController {
|
||||
late final ApiService _apiService;
|
||||
late final EntryController _entryController;
|
||||
final ApiService _apiService;
|
||||
//final EntryController _entryController;
|
||||
|
||||
TeamController({
|
||||
required ApiService apiService,
|
||||
//required EntryController entryController,
|
||||
}) : _apiService = apiService;
|
||||
//_entryController = entryController;
|
||||
|
||||
final teams = <Team>[].obs;
|
||||
final categories = <NewCategory>[].obs;
|
||||
@ -35,12 +41,12 @@ class TeamController extends GetxController {
|
||||
void onInit() async {
|
||||
super.onInit();
|
||||
try {
|
||||
_apiService = Get.find<ApiService>();
|
||||
//_apiService = Get.find<ApiService>();
|
||||
|
||||
if (!Get.isRegistered<EntryController>()) {
|
||||
Get.put(EntryController());
|
||||
}
|
||||
_entryController = Get.find<EntryController>();
|
||||
//if (!Get.isRegistered<EntryController>()) {
|
||||
// Get.put(EntryController());
|
||||
//}
|
||||
//_entryController = Get.find<EntryController>();
|
||||
|
||||
await loadInitialData();
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user