Я пытаюсь использовать плагин распознавания речи в своем приложении Flutter. Но я получаю следующие ошибки.
код:
return SafeArea(
child: Scaffold(
body: Center(
child: Text(resultText),
),
floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
floatingActionButton: FloatingActionButton(
onPressed: () {
setState(() {
resultText = 'this is good';
if (_isAvailable && !_isListening) {
_speechRecognition.listen().then((value) {
print(value);
});
}
else {
print('condition false');
}
});
},
child: Icon(Icons.mic),
backgroundColor: Colors.red,
),
),
, но я получаю следующую ошибку.
Note: /home/umakanth/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/speech_recognition-0.3.0+1/android/src/main/java/bz/rxla/flutter/speechrecognition/SpeechRecognitionPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint: deprecation for details.
может ли кто-нибудь помочь мне с этой ошибкой пожалуйста?