You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
510 B
16 lines
510 B
import 'package:get/get.dart';
|
|
import '../controllers/flutter_asr_test_controller.dart';
|
|
import '../../../data/services/flutter_asr_service.dart';
|
|
|
|
class FlutterAsrTestBinding extends Bindings {
|
|
@override
|
|
void dependencies() {
|
|
// 注册ASR服务(如果尚未注册)
|
|
if (!Get.isRegistered<FlutterAsrService>()) {
|
|
Get.lazyPut<FlutterAsrService>(() => FlutterAsrService());
|
|
}
|
|
|
|
// 注册控制器
|
|
Get.lazyPut<FlutterAsrTestController>(() => FlutterAsrTestController());
|
|
}
|
|
}
|