Skip to content

Commit

Permalink
CIで弾かれたエラーを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
naokiwakata committed Aug 6, 2023
1 parent 9a5b209 commit d83aa15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:flutter/services.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';

import '../../../scaffold_messenger_controller.dart';
import '../../../widgets/dialog/dialog.dart';
import '../../../widgets/dialog/permission_handler_dialog.dart';

final firebaseStorageServiceProvider =
Provider.autoDispose<FirebaseStorageService>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ import 'package:dart_flutter_common/dart_flutter_common.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:permission_handler/permission_handler.dart';

import '../../../scaffold_messenger_controller.dart';
import '../../../widgets/dialog/dialog.dart';
import '../../../widgets/dialog/permission_handler_dialog.dart';

@RoutePage()
class ImagePickerSamplePage extends ConsumerStatefulWidget {
Expand Down Expand Up @@ -166,14 +165,11 @@ class _ImagePickerSamplePageState extends ConsumerState<ImagePickerSamplePage> {
if (e.code != 'camera_access_denied') {
return;
}
final result = await ref
await ref
.read(appScaffoldMessengerControllerProvider)
.showDialogByBuilder<bool>(
builder: (context) => const AccessNotDeniedDialog.camera(),
);
if (result ?? false) {
await openAppSettings();
}
}
}

Expand All @@ -192,14 +188,11 @@ class _ImagePickerSamplePageState extends ConsumerState<ImagePickerSamplePage> {
if (e.code != 'photo_access_denied') {
return;
}
final result = await ref
await ref
.read(appScaffoldMessengerControllerProvider)
.showDialogByBuilder<bool>(
builder: (context) => const AccessNotDeniedDialog.camera(),
);
if (result ?? false) {
await openAppSettings();
}
}
}
}

0 comments on commit d83aa15

Please sign in to comment.