fix lints
This commit is contained in:
@@ -16,10 +16,10 @@ dependencies:
|
||||
path: ../
|
||||
|
||||
dev_dependencies:
|
||||
integration_test:
|
||||
sdk: flutter
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
integration_test:
|
||||
sdk: flutter
|
||||
lint: ^2.8.0
|
||||
|
||||
flutter:
|
||||
|
||||
@@ -6,9 +6,8 @@
|
||||
// tree, read text, and verify that the values of widget properties are correct.
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
import 'package:flutter_mozilla_components_example/main.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('Verify Platform version', (WidgetTester tester) async {
|
||||
|
||||
@@ -27,11 +27,11 @@ dependencies:
|
||||
socks5_proxy: ^2.1.1
|
||||
|
||||
dev_dependencies:
|
||||
lint: ^2.8.0
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
integration_test:
|
||||
sdk: flutter
|
||||
lint: ^2.8.0
|
||||
|
||||
# For information on the generic Dart part of this file, see the
|
||||
# following page: https://dart.dev/tools/pub/pubspec
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
export 'src/flutter_tor.dart';
|
||||
export 'src/tor_api.g.dart'
|
||||
show
|
||||
TransportType,
|
||||
IPtProxyController,
|
||||
TorConfiguration,
|
||||
TorStatus,
|
||||
TorLogMessage,
|
||||
IPtProxyController;
|
||||
|
||||
export 'src/flutter_tor.dart';
|
||||
TorStatus,
|
||||
TransportType;
|
||||
|
||||
@@ -57,9 +57,9 @@ class FlutterTor {
|
||||
// Unregister the Flutter API handler
|
||||
TorLogApi.setUp(null);
|
||||
|
||||
_logController.close();
|
||||
_statusController.close();
|
||||
_bootstrapController.close();
|
||||
unawaited(_logController.close());
|
||||
unawaited(_statusController.close());
|
||||
unawaited(_bootstrapController.close());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -26,15 +26,11 @@ dependencies:
|
||||
# the parent directory to use the current plugin's version.
|
||||
path: ../
|
||||
|
||||
# The following adds the Cupertino Icons font to your application.
|
||||
# Use with the CupertinoIcons class for iOS style icons.
|
||||
cupertino_icons: ^1.0.8
|
||||
|
||||
dev_dependencies:
|
||||
integration_test:
|
||||
sdk: flutter
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
integration_test:
|
||||
sdk: flutter
|
||||
|
||||
# The "flutter_lints" package below contains a set of recommended lints to
|
||||
# encourage good coding practices. The lint set provided by the package is
|
||||
|
||||
@@ -42,6 +42,6 @@ class MyApp extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp();
|
||||
return const MaterialApp();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ environment:
|
||||
dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
|
||||
logger: ^2.6.2
|
||||
simple_intent_receiver:
|
||||
# When depending on this package from a real application you should use:
|
||||
# simple_intent_receiver: ^x.y.z
|
||||
@@ -26,16 +26,11 @@ dependencies:
|
||||
# the parent directory to use the current plugin's version.
|
||||
path: ../
|
||||
|
||||
# The following adds the Cupertino Icons font to your application.
|
||||
# Use with the CupertinoIcons class for iOS style icons.
|
||||
cupertino_icons: ^1.0.8
|
||||
logger: ^2.6.2
|
||||
|
||||
dev_dependencies:
|
||||
integration_test:
|
||||
sdk: flutter
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
integration_test:
|
||||
sdk: flutter
|
||||
|
||||
# The "flutter_lints" package below contains a set of recommended lints to
|
||||
# encourage good coding practices. The lint set provided by the package is
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:speech_to_text_dialog/speech_to_text_dialog.dart';
|
||||
|
||||
void main() {
|
||||
@@ -50,7 +50,7 @@ class _MyAppState extends State<MyApp> {
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_textSubscription?.cancel();
|
||||
unawaited(_textSubscription?.cancel());
|
||||
_speechToTextDialog.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@@ -26,15 +26,11 @@ dependencies:
|
||||
# the parent directory to use the current plugin's version.
|
||||
path: ../
|
||||
|
||||
# The following adds the Cupertino Icons font to your application.
|
||||
# Use with the CupertinoIcons class for iOS style icons.
|
||||
cupertino_icons: ^1.0.8
|
||||
|
||||
dev_dependencies:
|
||||
integration_test:
|
||||
sdk: flutter
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
integration_test:
|
||||
sdk: flutter
|
||||
|
||||
# The "flutter_lints" package below contains a set of recommended lints to
|
||||
# encourage good coding practices. The lint set provided by the package is
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
import 'dart:async';
|
||||
import 'package:flutter/services.dart' show BinaryMessenger;
|
||||
import 'src/pigeons/speech_to_text.g.dart';
|
||||
import 'package:speech_to_text_dialog/src/pigeons/speech_to_text.g.dart';
|
||||
|
||||
/// Speech recognition dialog using Android's RecognizerIntent.
|
||||
///
|
||||
@@ -82,7 +82,7 @@ class SpeechToTextDialog implements SpeechToTextEvents {
|
||||
/// print('Speech recognition not available');
|
||||
/// }
|
||||
/// ```
|
||||
Future<bool> showDialog({String? locale}) async {
|
||||
Future<bool> showDialog({String? locale}) {
|
||||
return _api.showDialog(locale: locale);
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ class SpeechToTextDialog implements SpeechToTextEvents {
|
||||
if (!_disposed) {
|
||||
_disposed = true;
|
||||
SpeechToTextEvents.setUp(null, binaryMessenger: _binaryMessenger);
|
||||
_textStreamController.close();
|
||||
unawaited(_textStreamController.close());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user