Skip to content

Commit

Permalink
Merge pull request #44 from koji-1009/lint_rules
Browse files Browse the repository at this point in the history
Update rule
  • Loading branch information
koji-1009 authored May 9, 2023
2 parents a23873e + 6daa572 commit d3d76c2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ linter:
# `// 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
prefer_single_quotes: true
always_use_package_imports: true
require_trailing_commas: true
avoid_void_async: true
unawaited_futures: true

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:hive_flutter/hive_flutter.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:http_hive_cache/http_hive_cache.dart';

Future<void> main() async {
void main() async {
LicenseRegistry.addLicense(() async* {
yield const LicenseEntryWithLineBreaks(['google_fonts'], mPlus1License);
});
Expand Down
2 changes: 1 addition & 1 deletion lib/view/home/history/history_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class HistoryWidget extends ConsumerWidget {
IconButton(
tooltip: '履歴の削除',
onPressed: () async {
showDialog(
await showDialog(
context: context,
builder: (context) => AlertDialog(
title: const Text('履歴の削除'),
Expand Down
2 changes: 1 addition & 1 deletion lib/view/widget/home_app_bar_action.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class HomeAppBarAction extends StatelessWidget {
onSelected: (value) async {
switch (value) {
case _HomeAction.cache:
showDialog(
await showDialog(
context: context,
builder: (context) => const CacheClearDialog(),
);
Expand Down

0 comments on commit d3d76c2

Please sign in to comment.