fix formatting
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
// For more information about Flutter integration tests, please see
|
||||
// https://flutter.dev/to/integration-testing
|
||||
|
||||
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:integration_test/integration_test.dart';
|
||||
|
||||
|
||||
@@ -84,11 +84,7 @@ class _MyAppState extends State<MyApp> {
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
const Icon(
|
||||
Icons.mic,
|
||||
size: 80,
|
||||
color: Colors.blue,
|
||||
),
|
||||
const Icon(Icons.mic, size: 80, color: Colors.blue),
|
||||
const SizedBox(height: 24),
|
||||
Text(
|
||||
_recognizedText,
|
||||
|
||||
@@ -18,8 +18,8 @@ void main() {
|
||||
// Verify that platform version is retrieved.
|
||||
expect(
|
||||
find.byWidgetPredicate(
|
||||
(Widget widget) => widget is Text &&
|
||||
widget.data!.startsWith('Running on:'),
|
||||
(Widget widget) =>
|
||||
widget is Text && widget.data!.startsWith('Running on:'),
|
||||
),
|
||||
findsOneWidget,
|
||||
);
|
||||
|
||||
@@ -48,11 +48,9 @@ class SpeechToTextDialog implements SpeechToTextEvents {
|
||||
///
|
||||
/// Optionally provide a custom [api] for testing or dependency injection.
|
||||
/// If [binaryMessenger] is provided, it will be used for Pigeon communication.
|
||||
SpeechToTextDialog({
|
||||
SpeechToTextApi? api,
|
||||
BinaryMessenger? binaryMessenger,
|
||||
}) : _api = api ?? SpeechToTextApi(binaryMessenger: binaryMessenger),
|
||||
_binaryMessenger = binaryMessenger {
|
||||
SpeechToTextDialog({SpeechToTextApi? api, BinaryMessenger? binaryMessenger})
|
||||
: _api = api ?? SpeechToTextApi(binaryMessenger: binaryMessenger),
|
||||
_binaryMessenger = binaryMessenger {
|
||||
// Set up the event handler
|
||||
SpeechToTextEvents.setUp(this, binaryMessenger: binaryMessenger);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,6 @@ import 'package:pigeon/pigeon.dart';
|
||||
dartPackageName: 'speech_to_text_dialog',
|
||||
),
|
||||
)
|
||||
|
||||
/// Host API - methods called from Flutter to native Android.
|
||||
@HostApi()
|
||||
abstract class SpeechToTextApi {
|
||||
|
||||
Reference in New Issue
Block a user