From 3d3af1bfb7b923d50ff72a909368147871543c6f Mon Sep 17 00:00:00 2001 From: Jakub Date: Sun, 12 Nov 2023 13:41:18 +0100 Subject: [PATCH] fix: fixed lint --- example/analysis_options.yaml | 28 ------------------------ lib/ui/page/alice_calls_list_screen.dart | 4 +++- pubspec.yaml | 20 ++++++++--------- 3 files changed, 13 insertions(+), 39 deletions(-) delete mode 100644 example/analysis_options.yaml diff --git a/example/analysis_options.yaml b/example/analysis_options.yaml deleted file mode 100644 index 0d290213..00000000 --- a/example/analysis_options.yaml +++ /dev/null @@ -1,28 +0,0 @@ -# This file configures the analyzer, which statically analyzes Dart code to -# check for errors, warnings, and lints. -# -# The issues identified by the analyzer are surfaced in the UI of Dart-enabled -# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be -# invoked from the command line by running `flutter analyze`. - -# The following line activates a set of recommended lints for Flutter apps, -# packages, and plugins designed to encourage good coding practices. -include: package:flutter_lints/flutter.yaml - -linter: - # The lint rules applied to this project can be customized in the - # section below to disable rules from the `package:flutter_lints/flutter.yaml` - # included above or to enable additional rules. A list of all available lints - # and their documentation is published at https://dart.dev/lints. - # - # Instead of disabling a lint rule for the entire project in the - # section below, it can also be suppressed for a single line of code - # or a specific dart file by using the `// ignore: name_of_lint` and - # `// ignore_for_file: name_of_lint` syntax on the line or in the file - # producing the lint. - rules: - # avoid_print: false # Uncomment to disable the `avoid_print` rule - # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule - -# Additional information about this file can be found at -# https://dart.dev/guides/language/analysis-options diff --git a/lib/ui/page/alice_calls_list_screen.dart b/lib/ui/page/alice_calls_list_screen.dart index 34b0b83c..e98a9a55 100644 --- a/lib/ui/page/alice_calls_list_screen.dart +++ b/lib/ui/page/alice_calls_list_screen.dart @@ -414,7 +414,9 @@ class _AliceCallsListScreenState extends State itemCount: callsSorted.length, itemBuilder: (context, index) { return AliceCallListItemWidget( - callsSorted[index], _onListItemClicked); + callsSorted[index], + _onListItemClicked, + ); }, ), ); diff --git a/pubspec.yaml b/pubspec.yaml index 9429d2e8..8c359aa5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -29,13 +29,13 @@ dependencies: dev_dependencies: very_good_analysis: ^5.1.0 - flutter: - plugin: - platforms: - android: - package: com.jhomlala.alice - pluginClass: AlicePlugin - ios: - pluginClass: AlicePlugin - macos: - pluginClass: AlicePlugin +flutter: + plugin: + platforms: + android: + package: com.jhomlala.alice + pluginClass: AlicePlugin + ios: + pluginClass: AlicePlugin + macos: + pluginClass: AlicePlugin