-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
26 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
frontend/lib/ui/artefact_page/environment_issues/environment_issues_preloader.dart
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
frontend/lib/ui/artefact_page/test_issues/test_issues_preloader.dart
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_riverpod/flutter_riverpod.dart'; | ||
|
||
class NonBlockingProviderPreloader extends ConsumerWidget { | ||
const NonBlockingProviderPreloader({ | ||
super.key, | ||
required this.provider, | ||
required this.child, | ||
}); | ||
|
||
final ProviderListenable provider; | ||
final Widget child; | ||
|
||
@override | ||
Widget build(BuildContext context, WidgetRef ref) { | ||
ref.watch(provider); | ||
return child; | ||
} | ||
} |