From e8c1d71d0adf1d3d63581d440376ae16e8bf03cc Mon Sep 17 00:00:00 2001 From: Wenqi Li Date: Mon, 25 Mar 2024 03:37:31 +0800 Subject: [PATCH] Upgrade flutter_lints dependency. Lint code according to the use_string_in_part_of_directives rule. --- lib/src/common/medium_type.dart | 2 +- lib/src/image_providers/album_thumbnail_provider.dart | 2 +- lib/src/image_providers/photo_provider.dart | 2 +- lib/src/image_providers/thumbnail_provider.dart | 2 +- lib/src/models/album.dart | 2 +- lib/src/models/media_page.dart | 2 +- lib/src/models/medium.dart | 2 +- pubspec.yaml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/src/common/medium_type.dart b/lib/src/common/medium_type.dart index ee9d317..7173c87 100644 --- a/lib/src/common/medium_type.dart +++ b/lib/src/common/medium_type.dart @@ -1,4 +1,4 @@ -part of photogallery; +part of '../../photo_gallery.dart'; /// A medium type. enum MediumType { diff --git a/lib/src/image_providers/album_thumbnail_provider.dart b/lib/src/image_providers/album_thumbnail_provider.dart index 483455a..7759618 100644 --- a/lib/src/image_providers/album_thumbnail_provider.dart +++ b/lib/src/image_providers/album_thumbnail_provider.dart @@ -1,4 +1,4 @@ -part of photogallery; +part of '../../photo_gallery.dart'; /// Fetches the given album thumbnail from the gallery. class AlbumThumbnailProvider extends ImageProvider { diff --git a/lib/src/image_providers/photo_provider.dart b/lib/src/image_providers/photo_provider.dart index 52fc851..8d6913e 100644 --- a/lib/src/image_providers/photo_provider.dart +++ b/lib/src/image_providers/photo_provider.dart @@ -1,4 +1,4 @@ -part of photogallery; +part of '../../photo_gallery.dart'; /// Fetches the given image from the gallery. class PhotoProvider extends ImageProvider { diff --git a/lib/src/image_providers/thumbnail_provider.dart b/lib/src/image_providers/thumbnail_provider.dart index 1b94cda..52f73ec 100644 --- a/lib/src/image_providers/thumbnail_provider.dart +++ b/lib/src/image_providers/thumbnail_provider.dart @@ -1,4 +1,4 @@ -part of photogallery; +part of '../../photo_gallery.dart'; /// Fetches the given medium thumbnail from the gallery. class ThumbnailProvider extends ImageProvider { diff --git a/lib/src/models/album.dart b/lib/src/models/album.dart index 9cf0995..f81e860 100644 --- a/lib/src/models/album.dart +++ b/lib/src/models/album.dart @@ -1,4 +1,4 @@ -part of photogallery; +part of '../../photo_gallery.dart'; /// A album in the gallery. @immutable diff --git a/lib/src/models/media_page.dart b/lib/src/models/media_page.dart index 70ccfbf..e19b9ad 100644 --- a/lib/src/models/media_page.dart +++ b/lib/src/models/media_page.dart @@ -1,4 +1,4 @@ -part of photogallery; +part of '../../photo_gallery.dart'; /// A list of media with pagination support. @immutable diff --git a/lib/src/models/medium.dart b/lib/src/models/medium.dart index 419fee0..aff77f8 100644 --- a/lib/src/models/medium.dart +++ b/lib/src/models/medium.dart @@ -1,4 +1,4 @@ -part of photogallery; +part of '../../photo_gallery.dart'; /// A medium in the gallery. /// diff --git a/pubspec.yaml b/pubspec.yaml index 26c9204..0b4c90d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -20,7 +20,7 @@ dev_dependencies: # activated in the `analysis_options.yaml` file located at the root of your # package. See that file for information about deactivating specific lint # rules and activating additional ones. - flutter_lints: ^2.0.0 + flutter_lints: ^3.0.0 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec