Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Barabas5532 committed Mar 25, 2024
1 parent d26a49d commit 90412a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion frontend/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ void main() {

runApp(
riverpod.ProviderScope(
//observers: [MyObserver()],
observers: [
// ignore: do_not_use_environment
if (const bool.fromEnvironment('ENABLE_PROVIDER_OBSERVER'))
ProviderObserverImpl(),
],
child: App(),
),
);
Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/provider_observer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:logging/logging.dart';

final _log = Logger('provider')..level = Level.ALL;

class MyObserver extends ProviderObserver {
class ProviderObserverImpl extends ProviderObserver {
@override
void didAddProvider(
ProviderBase<Object?> provider,
Expand Down

0 comments on commit 90412a3

Please sign in to comment.