Skip to content

Commit 35cf270

Browse files
committed
🚨 Fix linter warnings
1 parent 251c528 commit 35cf270

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ analyzer:
2626
missing_return: warning
2727
# allow having TODO comments in the code
2828
todo: ignore
29+
deprecated_member_use: ignore
2930

3031
linter:
3132
rules:

example/lib/widgets/preview_asset_widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class _PreviewAssetWidgetState extends State<PreviewAssetWidget> {
3939
Future<void> _initializeController() async {
4040
final String? url = await widget.asset.getMediaUrl();
4141
if (url == null) {
42-
_error = NullThrownError();
42+
_error = StateError('The media URL of the preview asset is null.');
4343
return;
4444
}
4545
final VideoPlayerController controller;

0 commit comments

Comments
 (0)