diff --git a/.github/workflows/authentication_repository.yaml b/.github/workflows/authentication_repository.yaml index 0e38ef6e..8b09c99a 100644 --- a/.github/workflows/authentication_repository.yaml +++ b/.github/workflows/authentication_repository.yaml @@ -17,5 +17,5 @@ jobs: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: flutter_channel: "stable" - flutter_version: 3.7.1 + flutter_version: 3.7.12 working_directory: packages/authentication_repository diff --git a/.github/workflows/avatar_detector_repository.yaml b/.github/workflows/avatar_detector_repository.yaml index 4c37da8c..48130e8a 100644 --- a/.github/workflows/avatar_detector_repository.yaml +++ b/.github/workflows/avatar_detector_repository.yaml @@ -17,5 +17,5 @@ jobs: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: flutter_channel: "stable" - flutter_version: 3.7.1 + flutter_version: 3.7.12 working_directory: packages/avatar_detector_repository diff --git a/.github/workflows/convert_repository.yaml b/.github/workflows/convert_repository.yaml index 7942ae4e..d9772d34 100644 --- a/.github/workflows/convert_repository.yaml +++ b/.github/workflows/convert_repository.yaml @@ -17,6 +17,6 @@ jobs: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: flutter_channel: "stable" - flutter_version: 3.7.1 + flutter_version: 3.7.12 coverage_excludes: "**/*.gen.dart" working_directory: packages/convert_repository diff --git a/.github/workflows/deploy_app_dev.yaml b/.github/workflows/deploy_app_dev.yaml index a1395402..33a84f1c 100644 --- a/.github/workflows/deploy_app_dev.yaml +++ b/.github/workflows/deploy_app_dev.yaml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v2 - uses: subosito/flutter-action@v2 with: - flutter-version: "3.7.1" + flutter-version: "3.7.12" channel: "stable" - run: flutter packages get - run: flutter build web --web-renderer canvaskit -t lib/main_dev.dart --dart-define SHARING_ENABLED=true diff --git a/.github/workflows/deploy_app_production.yaml b/.github/workflows/deploy_app_production.yaml index 358512c7..bd66b891 100644 --- a/.github/workflows/deploy_app_production.yaml +++ b/.github/workflows/deploy_app_production.yaml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v2 - uses: subosito/flutter-action@v2 with: - flutter-version: "3.7.1" + flutter-version: "3.7.12" channel: "stable" - run: flutter packages get - run: flutter build web --web-renderer canvaskit -t lib/main_prod.dart --dart-define SHARING_ENABLED=true diff --git a/.github/workflows/deploy_app_staging.yaml b/.github/workflows/deploy_app_staging.yaml index 4aaa444b..59590da3 100644 --- a/.github/workflows/deploy_app_staging.yaml +++ b/.github/workflows/deploy_app_staging.yaml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v2 - uses: subosito/flutter-action@v2 with: - flutter-version: "3.7.1" + flutter-version: "3.7.12" channel: "stable" - run: flutter packages get - run: flutter build web --web-renderer canvaskit -t lib/main_dev.dart diff --git a/.github/workflows/download_repository.yaml b/.github/workflows/download_repository.yaml index 147fba95..1918fcd8 100644 --- a/.github/workflows/download_repository.yaml +++ b/.github/workflows/download_repository.yaml @@ -17,6 +17,6 @@ jobs: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: flutter_channel: "stable" - flutter_version: 3.7.1 + flutter_version: 3.7.12 coverage_excludes: "**/*.gen.dart" working_directory: packages/download_repository diff --git a/.github/workflows/face_geometry.yaml b/.github/workflows/face_geometry.yaml index 0dbfa9b0..b6487aa7 100644 --- a/.github/workflows/face_geometry.yaml +++ b/.github/workflows/face_geometry.yaml @@ -17,5 +17,5 @@ jobs: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: flutter_channel: "stable" - flutter_version: 3.7.1 + flutter_version: 3.7.12 working_directory: packages/face_geometry diff --git a/.github/workflows/holobooth_ui.yaml b/.github/workflows/holobooth_ui.yaml index f570dc22..02676646 100644 --- a/.github/workflows/holobooth_ui.yaml +++ b/.github/workflows/holobooth_ui.yaml @@ -17,5 +17,5 @@ jobs: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: flutter_channel: "stable" - flutter_version: 3.7.1 + flutter_version: 3.7.12 working_directory: packages/holobooth_ui diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 67a18d30..fbce9881 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -17,5 +17,5 @@ jobs: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: flutter_channel: "stable" - flutter_version: 3.7.1 + flutter_version: 3.7.12 coverage_excludes: "**/*.g.dart" diff --git a/.github/workflows/tensorflow_models.yaml b/.github/workflows/tensorflow_models.yaml index acbec0bb..b7fbae0f 100644 --- a/.github/workflows/tensorflow_models.yaml +++ b/.github/workflows/tensorflow_models.yaml @@ -13,5 +13,5 @@ jobs: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 with: flutter_channel: "stable" - flutter_version: 3.7.1 + flutter_version: 3.7.12 working_directory: packages/tensorflow_models/tensorflow_models diff --git a/.github/workflows/tensorflow_models_web.yaml b/.github/workflows/tensorflow_models_web.yaml index 4d68a7df..bd0e8fa7 100644 --- a/.github/workflows/tensorflow_models_web.yaml +++ b/.github/workflows/tensorflow_models_web.yaml @@ -23,7 +23,7 @@ jobs: - name: 🐦 Setup Flutter uses: subosito/flutter-action@v2 with: - flutter-version: 3.7.1 + flutter-version: 3.7.12 channel: "stable" cache: true cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }} diff --git a/analysis_options.yaml b/analysis_options.yaml index d0a1173f..01430bc5 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:very_good_analysis/analysis_options.3.1.0.yaml +include: package:very_good_analysis/analysis_options.4.0.0.yaml analyzer: exclude: - lib/firebase_options_dev.dart diff --git a/lib/app/app.dart b/lib/app/app.dart index 7243f904..9da76fa8 100644 --- a/lib/app/app.dart +++ b/lib/app/app.dart @@ -13,12 +13,12 @@ import 'package:holobooth_ui/holobooth_ui.dart'; class App extends StatelessWidget { const App({ - super.key, required this.authenticationRepository, required this.avatarDetectorRepository, required this.convertRepository, required this.downloadRepository, required this.analyticsRepository, + super.key, }); final AuthenticationRepository authenticationRepository; diff --git a/lib/audio_player/widgets/audio_player.dart b/lib/audio_player/widgets/audio_player.dart index ba1473df..8e9ed189 100644 --- a/lib/audio_player/widgets/audio_player.dart +++ b/lib/audio_player/widgets/audio_player.dart @@ -18,13 +18,13 @@ class AudioPlayerController { class AudioPlayer extends StatefulWidget { const AudioPlayer({ - super.key, required this.audioAssetPath, required this.child, this.controller, this.loop = false, this.autoplay = false, this.onAudioFinished, + super.key, }); final String audioAssetPath; diff --git a/lib/avatar_detector/widgets/camera_stream_listener.dart b/lib/avatar_detector/widgets/camera_stream_listener.dart index a2fda9da..f7c2f36c 100644 --- a/lib/avatar_detector/widgets/camera_stream_listener.dart +++ b/lib/avatar_detector/widgets/camera_stream_listener.dart @@ -5,8 +5,8 @@ import 'package:holobooth/avatar_detector/avatar_detector.dart'; class CameraStreamListener extends StatefulWidget { const CameraStreamListener({ - super.key, required this.cameraController, + super.key, }); final CameraController cameraController; diff --git a/lib/camera/widgets/camera_error_view.dart b/lib/camera/widgets/camera_error_view.dart index 24606687..8a1fe10a 100644 --- a/lib/camera/widgets/camera_error_view.dart +++ b/lib/camera/widgets/camera_error_view.dart @@ -4,7 +4,7 @@ import 'package:holobooth/l10n/l10n.dart'; import 'package:holobooth_ui/holobooth_ui.dart'; class CameraErrorView extends StatelessWidget { - const CameraErrorView({super.key, required this.error}); + const CameraErrorView({required this.error, super.key}); final CameraException error; diff --git a/lib/camera/widgets/camera_selection_dropdown.dart b/lib/camera/widgets/camera_selection_dropdown.dart index c6ea7136..c897f85b 100644 --- a/lib/camera/widgets/camera_selection_dropdown.dart +++ b/lib/camera/widgets/camera_selection_dropdown.dart @@ -73,7 +73,10 @@ class CameraSelectionDropdown extends StatelessWidget { } class _CameraErrorView extends StatelessWidget { - const _CameraErrorView({super.key, required this.error}); + const _CameraErrorView({ + required this.error, + super.key, + }); final Object error; diff --git a/lib/camera/widgets/camera_view.dart b/lib/camera/widgets/camera_view.dart index a4cd169e..fe3e49b5 100644 --- a/lib/camera/widgets/camera_view.dart +++ b/lib/camera/widgets/camera_view.dart @@ -6,9 +6,9 @@ import 'package:holobooth/camera/camera.dart'; class CameraView extends StatefulWidget { const CameraView({ - super.key, required this.onCameraReady, this.camera, + super.key, }); @visibleForTesting diff --git a/lib/convert/view/convert_page.dart b/lib/convert/view/convert_page.dart index 345ae6d2..e4db1e2e 100644 --- a/lib/convert/view/convert_page.dart +++ b/lib/convert/view/convert_page.dart @@ -122,7 +122,7 @@ class _ConvertViewState extends State { @visibleForTesting class ConvertBody extends StatelessWidget { - const ConvertBody({super.key, required this.camera}); + const ConvertBody({required this.camera, super.key}); final CameraDescription? camera; diff --git a/lib/convert/widgets/convert_error_view.dart b/lib/convert/widgets/convert_error_view.dart index 1bc41667..23e2def3 100644 --- a/lib/convert/widgets/convert_error_view.dart +++ b/lib/convert/widgets/convert_error_view.dart @@ -13,9 +13,9 @@ enum ConvertErrorOrigin { class ConvertErrorView extends StatelessWidget { const ConvertErrorView({ - super.key, required this.convertErrorOrigin, this.camera, + super.key, }); final ConvertErrorOrigin convertErrorOrigin; @@ -93,7 +93,7 @@ class TryAgainFrameProcessingButton extends StatelessWidget { @visibleForTesting class RetakeExperienceButton extends StatelessWidget { - const RetakeExperienceButton({super.key, required this.camera}); + const RetakeExperienceButton({required this.camera, super.key}); final CameraDescription? camera; diff --git a/lib/convert/widgets/convert_loading_animation.dart b/lib/convert/widgets/convert_loading_animation.dart index 09f31472..19220521 100644 --- a/lib/convert/widgets/convert_loading_animation.dart +++ b/lib/convert/widgets/convert_loading_animation.dart @@ -5,8 +5,8 @@ import 'package:holobooth_ui/holobooth_ui.dart'; class ConvertLoadingAnimation extends StatelessWidget { const ConvertLoadingAnimation({ - super.key, required this.dimension, + super.key, }); final double dimension; diff --git a/lib/footer/widgets/footer_link.dart b/lib/footer/widgets/footer_link.dart index 2d2fe3e8..e67a4e34 100644 --- a/lib/footer/widgets/footer_link.dart +++ b/lib/footer/widgets/footer_link.dart @@ -5,9 +5,9 @@ import 'package:holobooth_ui/holobooth_ui.dart'; class FooterLink extends StatelessWidget { const FooterLink({ - super.key, required this.text, required this.link, + super.key, }); final String text; diff --git a/lib/in_experience_selection/widgets/next_button.dart b/lib/in_experience_selection/widgets/next_button.dart index 9f0e4dd7..9adbaf24 100644 --- a/lib/in_experience_selection/widgets/next_button.dart +++ b/lib/in_experience_selection/widgets/next_button.dart @@ -5,7 +5,7 @@ import 'package:holobooth/l10n/l10n.dart'; import 'package:holobooth_ui/holobooth_ui.dart'; class NextButton extends StatefulWidget { - const NextButton({super.key, required this.onNextPressed}); + const NextButton({required this.onNextPressed, super.key}); final VoidCallback onNextPressed; diff --git a/lib/in_experience_selection/widgets/primary_selection_tab_view.dart b/lib/in_experience_selection/widgets/primary_selection_tab_view.dart index 37aa3763..498e3d01 100644 --- a/lib/in_experience_selection/widgets/primary_selection_tab_view.dart +++ b/lib/in_experience_selection/widgets/primary_selection_tab_view.dart @@ -161,8 +161,8 @@ class _PrimarySelectionViewState extends State @visibleForTesting class PrimarySelectionTab extends StatefulWidget { const PrimarySelectionTab({ - super.key, required this.iconData, + super.key, }); final IconData iconData; diff --git a/lib/in_experience_selection/widgets/props_scroll_view.dart b/lib/in_experience_selection/widgets/props_scroll_view.dart index 6160c230..8c47ef9c 100644 --- a/lib/in_experience_selection/widgets/props_scroll_view.dart +++ b/lib/in_experience_selection/widgets/props_scroll_view.dart @@ -3,9 +3,9 @@ import 'package:holobooth_ui/holobooth_ui.dart'; class PropsScrollView extends StatelessWidget { const PropsScrollView({ - super.key, required this.itemBuilder, required this.itemCount, + super.key, }); final Widget? Function(BuildContext context, int index) itemBuilder; diff --git a/lib/in_experience_selection/widgets/props_selection_tab_bar_view.dart b/lib/in_experience_selection/widgets/props_selection_tab_bar_view.dart index 20f1882a..52a5c2d5 100644 --- a/lib/in_experience_selection/widgets/props_selection_tab_bar_view.dart +++ b/lib/in_experience_selection/widgets/props_selection_tab_bar_view.dart @@ -117,8 +117,8 @@ class _PropsSelectionTabBarViewState extends State class _PropSelectionTab extends StatefulWidget { const _PropSelectionTab({ - super.key, required this.assetGenImage, + super.key, }); final AssetGenImage assetGenImage; diff --git a/lib/in_experience_selection/widgets/recording_button.dart b/lib/in_experience_selection/widgets/recording_button.dart index 4abff563..4234520d 100644 --- a/lib/in_experience_selection/widgets/recording_button.dart +++ b/lib/in_experience_selection/widgets/recording_button.dart @@ -5,7 +5,7 @@ import 'package:holobooth/l10n/l10n.dart'; import 'package:holobooth_ui/holobooth_ui.dart'; class RecordingButton extends StatefulWidget { - const RecordingButton({super.key, required this.onRecordingPressed}); + const RecordingButton({required this.onRecordingPressed, super.key}); final VoidCallback onRecordingPressed; diff --git a/lib/in_experience_selection/widgets/selection_layer.dart b/lib/in_experience_selection/widgets/selection_layer.dart index cf0a54ef..4d519f88 100644 --- a/lib/in_experience_selection/widgets/selection_layer.dart +++ b/lib/in_experience_selection/widgets/selection_layer.dart @@ -82,9 +82,9 @@ class _MobileSelectionLayerState extends State { @visibleForTesting class CollapseButton extends StatelessWidget { const CollapseButton({ - super.key, required this.onPressed, required this.collapsed, + super.key, }); final VoidCallback onPressed; diff --git a/lib/photo_booth/widgets/get_ready_layer.dart b/lib/photo_booth/widgets/get_ready_layer.dart index 8c6d44bb..234c830c 100644 --- a/lib/photo_booth/widgets/get_ready_layer.dart +++ b/lib/photo_booth/widgets/get_ready_layer.dart @@ -6,8 +6,8 @@ import 'package:holobooth_ui/holobooth_ui.dart'; class GetReadyLayer extends StatefulWidget { const GetReadyLayer({ - super.key, required this.onCountdownCompleted, + super.key, }); final VoidCallback onCountdownCompleted; @@ -61,8 +61,8 @@ class _GetReadyLayerState extends State @visibleForTesting class GetReadyCountdown extends StatelessWidget { const GetReadyCountdown({ - super.key, required this.controller, + super.key, }); final AnimationController controller; diff --git a/lib/photo_booth/widgets/recording_countdown.dart b/lib/photo_booth/widgets/recording_countdown.dart index ee390a57..3fb30eb2 100644 --- a/lib/photo_booth/widgets/recording_countdown.dart +++ b/lib/photo_booth/widgets/recording_countdown.dart @@ -6,8 +6,8 @@ import 'package:holobooth_ui/holobooth_ui.dart'; class RecordingCountdown extends StatefulWidget { const RecordingCountdown({ - super.key, required this.onCountdownCompleted, + super.key, }); final VoidCallback onCountdownCompleted; @@ -65,7 +65,7 @@ class _RecordingCountdownState extends State @visibleForTesting class CountdownTimer extends StatelessWidget { - const CountdownTimer({super.key, required this.controller}); + const CountdownTimer({required this.controller, super.key}); final AnimationController controller; diff --git a/lib/rive/widgets/background_animation.dart b/lib/rive/widgets/background_animation.dart index 5d08bb10..a5eb69ac 100644 --- a/lib/rive/widgets/background_animation.dart +++ b/lib/rive/widgets/background_animation.dart @@ -3,8 +3,8 @@ import 'package:rive/rive.dart'; class BackgroundAnimation extends StatefulWidget { const BackgroundAnimation({ - super.key, required this.riveFile, + super.key, }); final RiveFile riveFile; diff --git a/lib/rive/widgets/character_animation.dart b/lib/rive/widgets/character_animation.dart index f23e8416..02542ff5 100644 --- a/lib/rive/widgets/character_animation.dart +++ b/lib/rive/widgets/character_animation.dart @@ -49,13 +49,13 @@ class RiveCharacter { @visibleForTesting class CharacterAnimation extends StatefulWidget { const CharacterAnimation({ - super.key, required this.avatar, required this.hat, required this.glasses, required this.clothes, required this.handheldlLeft, required this.riveCharacter, + super.key, }); final Avatar avatar; diff --git a/lib/share/view/share_page.dart b/lib/share/view/share_page.dart index 230696c3..a1839c1d 100644 --- a/lib/share/view/share_page.dart +++ b/lib/share/view/share_page.dart @@ -9,9 +9,9 @@ import 'package:holobooth_ui/holobooth_ui.dart'; class SharePage extends StatelessWidget { const SharePage({ - super.key, required this.convertBloc, this.camera, + super.key, }); final ConvertBloc convertBloc; diff --git a/lib/share/widgets/download_button.dart b/lib/share/widgets/download_button.dart index 25f6a081..1428726b 100644 --- a/lib/share/widgets/download_button.dart +++ b/lib/share/widgets/download_button.dart @@ -99,9 +99,9 @@ class _DownloadButtonState extends State { class DownloadOptionDialog extends StatelessWidget { const DownloadOptionDialog({ - super.key, required this.layerLink, required this.url, + super.key, }); final LayerLink layerLink; @@ -136,7 +136,7 @@ class DownloadOptionDialog extends StatelessWidget { } class DownloadAsAGifButton extends StatelessWidget { - const DownloadAsAGifButton({super.key, required this.url}); + const DownloadAsAGifButton({required this.url, super.key}); final String url; @@ -168,7 +168,7 @@ class DownloadAsAGifButton extends StatelessWidget { } class DownloadAsAVideoButton extends StatelessWidget { - const DownloadAsAVideoButton({super.key, required this.url}); + const DownloadAsAVideoButton({required this.url, super.key}); final String url; diff --git a/lib/share/widgets/portal_animation.dart b/lib/share/widgets/portal_animation.dart index 8236f79f..6aeeb9ba 100644 --- a/lib/share/widgets/portal_animation.dart +++ b/lib/share/widgets/portal_animation.dart @@ -68,10 +68,10 @@ class PortalModeData { class PortalAnimation extends StatefulWidget { const PortalAnimation({ - super.key, required this.mode, required this.imageBytes, required this.onComplete, + super.key, }); final PortalMode mode; diff --git a/lib/share/widgets/retake_button.dart b/lib/share/widgets/retake_button.dart index 68e6fe63..9810cf4b 100644 --- a/lib/share/widgets/retake_button.dart +++ b/lib/share/widgets/retake_button.dart @@ -5,7 +5,7 @@ import 'package:holobooth/photo_booth/photo_booth.dart'; import 'package:holobooth_ui/holobooth_ui.dart'; class RetakeButton extends StatelessWidget { - const RetakeButton({super.key, required this.camera}); + const RetakeButton({required this.camera, super.key}); final CameraDescription? camera; diff --git a/lib/share/widgets/share_body.dart b/lib/share/widgets/share_body.dart index 7331c0c8..27493403 100644 --- a/lib/share/widgets/share_body.dart +++ b/lib/share/widgets/share_body.dart @@ -42,9 +42,9 @@ class ShareBody extends StatelessWidget { @visibleForTesting class SmallShareBody extends StatelessWidget { const SmallShareBody({ - super.key, required this.isMobile, required this.camera, + super.key, }); final bool isMobile; @@ -74,9 +74,9 @@ class SmallShareBody extends StatelessWidget { @visibleForTesting class LargeShareBody extends StatelessWidget { const LargeShareBody({ - super.key, required this.isMobile, required this.camera, + super.key, }); final bool isMobile; @@ -118,9 +118,9 @@ class LargeShareBody extends StatelessWidget { @visibleForTesting class PortalAnimationView extends StatefulWidget { const PortalAnimationView({ - super.key, required this.thumbnail, required this.mode, + super.key, }); final Uint8List thumbnail; diff --git a/lib/share/widgets/share_dialog_close_button.dart b/lib/share/widgets/share_dialog_close_button.dart index 0abbf692..35d7898a 100644 --- a/lib/share/widgets/share_dialog_close_button.dart +++ b/lib/share/widgets/share_dialog_close_button.dart @@ -3,7 +3,7 @@ import 'package:holobooth/assets/assets.dart'; import 'package:holobooth_ui/holobooth_ui.dart'; class ShareDialogCloseButton extends StatelessWidget { - const ShareDialogCloseButton({super.key, required this.size}); + const ShareDialogCloseButton({required this.size, super.key}); final double size; diff --git a/lib/share/widgets/video_dialog.dart b/lib/share/widgets/video_dialog.dart index 51fc9bdb..b8556a2a 100644 --- a/lib/share/widgets/video_dialog.dart +++ b/lib/share/widgets/video_dialog.dart @@ -6,8 +6,8 @@ import 'package:holobooth_ui/holobooth_ui.dart'; class VideoDialogLauncher extends StatelessWidget { const VideoDialogLauncher({ - super.key, required this.convertBloc, + super.key, }); final ConvertBloc convertBloc; @@ -35,7 +35,7 @@ class VideoDialogLauncher extends StatelessWidget { } class VideoDialog extends StatefulWidget { - const VideoDialog({super.key, required this.videoPath}); + const VideoDialog({required this.videoPath, super.key}); final String videoPath; diff --git a/lib/share/widgets/video_player_view.dart b/lib/share/widgets/video_player_view.dart index c5c46f40..96f7bc70 100644 --- a/lib/share/widgets/video_player_view.dart +++ b/lib/share/widgets/video_player_view.dart @@ -6,9 +6,9 @@ import 'package:video_player/video_player.dart'; class VideoPlayerView extends StatefulWidget { const VideoPlayerView({ - super.key, required this.url, this.onInitialized, + super.key, }); final String url; @@ -240,9 +240,9 @@ class _Controls extends StatelessWidget { class VideoProgressBar extends StatelessWidget { const VideoProgressBar({ - super.key, required this.currentPosition, required this.totalDuration, + super.key, }); final Duration currentPosition; diff --git a/lib/widgets/icon_links.dart b/lib/widgets/icon_links.dart index f47ca631..c6662801 100644 --- a/lib/widgets/icon_links.dart +++ b/lib/widgets/icon_links.dart @@ -5,9 +5,9 @@ import 'package:holobooth_ui/holobooth_ui.dart'; class IconLink extends StatelessWidget { const IconLink({ - super.key, required this.icon, required this.link, + super.key, }); final Widget icon; diff --git a/packages/analytics_repository/analysis_options.yaml b/packages/analytics_repository/analysis_options.yaml index 273cb60f..84e34fba 100644 --- a/packages/analytics_repository/analysis_options.yaml +++ b/packages/analytics_repository/analysis_options.yaml @@ -1 +1 @@ -include: package:very_good_analysis/analysis_options.3.1.0.yaml +include: package:very_good_analysis/analysis_options.4.0.0.yaml diff --git a/packages/analytics_repository/pubspec.yaml b/packages/analytics_repository/pubspec.yaml index a64571b1..832cfe23 100644 --- a/packages/analytics_repository/pubspec.yaml +++ b/packages/analytics_repository/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0+1 publish_to: none environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=2.19.0 <3.0.0" dependencies: equatable: ^2.0.5 @@ -14,4 +14,4 @@ dependencies: dev_dependencies: mocktail: ^0.3.0 test: ^1.19.2 - very_good_analysis: ^3.1.0 + very_good_analysis: ^4.0.0 diff --git a/packages/authentication_repository/analysis_options.yaml b/packages/authentication_repository/analysis_options.yaml index 5fa26b8f..84e34fba 100644 --- a/packages/authentication_repository/analysis_options.yaml +++ b/packages/authentication_repository/analysis_options.yaml @@ -1 +1 @@ -include: package:very_good_analysis/analysis_options.3.1.0.yaml \ No newline at end of file +include: package:very_good_analysis/analysis_options.4.0.0.yaml diff --git a/packages/authentication_repository/lib/authentication_repository.dart b/packages/authentication_repository/lib/authentication_repository.dart index 77b1b6b9..a7b88c19 100644 --- a/packages/authentication_repository/lib/authentication_repository.dart +++ b/packages/authentication_repository/lib/authentication_repository.dart @@ -1,3 +1 @@ -library authentication_repository; - export 'src/authentication_repository.dart'; diff --git a/packages/authentication_repository/pubspec.yaml b/packages/authentication_repository/pubspec.yaml index ced14a3d..c5dd180b 100644 --- a/packages/authentication_repository/pubspec.yaml +++ b/packages/authentication_repository/pubspec.yaml @@ -3,7 +3,7 @@ description: Repository which manages user authentication using Firebase Authent version: 1.0.0+1 environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=2.19.0 <3.0.0" dependencies: equatable: ^2.0.5 @@ -16,4 +16,4 @@ dev_dependencies: flutter_test: sdk: flutter mocktail: ^0.1.1 - very_good_analysis: ^3.1.0 + very_good_analysis: ^4.0.0 diff --git a/packages/avatar_detector_repository/analysis_options.yaml b/packages/avatar_detector_repository/analysis_options.yaml index 273cb60f..84e34fba 100644 --- a/packages/avatar_detector_repository/analysis_options.yaml +++ b/packages/avatar_detector_repository/analysis_options.yaml @@ -1 +1 @@ -include: package:very_good_analysis/analysis_options.3.1.0.yaml +include: package:very_good_analysis/analysis_options.4.0.0.yaml diff --git a/packages/avatar_detector_repository/pubspec.yaml b/packages/avatar_detector_repository/pubspec.yaml index e72fc382..0e60e4a2 100644 --- a/packages/avatar_detector_repository/pubspec.yaml +++ b/packages/avatar_detector_repository/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0+1 publish_to: none environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=2.19.0 <3.0.0" dependencies: equatable: ^2.0.5 @@ -20,4 +20,4 @@ dev_dependencies: mocktail: ^0.3.0 plugin_platform_interface: ^2.1.3 test: ^1.19.2 - very_good_analysis: ^3.1.0 + very_good_analysis: ^4.0.0 diff --git a/packages/convert_repository/analysis_options.yaml b/packages/convert_repository/analysis_options.yaml index 273cb60f..84e34fba 100644 --- a/packages/convert_repository/analysis_options.yaml +++ b/packages/convert_repository/analysis_options.yaml @@ -1 +1 @@ -include: package:very_good_analysis/analysis_options.3.1.0.yaml +include: package:very_good_analysis/analysis_options.4.0.0.yaml diff --git a/packages/convert_repository/pubspec.yaml b/packages/convert_repository/pubspec.yaml index a72c798c..71b372da 100644 --- a/packages/convert_repository/pubspec.yaml +++ b/packages/convert_repository/pubspec.yaml @@ -4,17 +4,16 @@ version: 0.1.0+1 publish_to: none environment: - sdk: ">=2.18.0 <3.0.0" - flutter: 3.3.7 + sdk: ">=2.19.0 <3.0.0" + flutter: 3.7.12 dependencies: flutter: sdk: flutter http: ^0.13.5 - dev_dependencies: flutter_test: sdk: flutter mocktail: ^0.3.0 - very_good_analysis: ^3.1.0 + very_good_analysis: ^4.0.0 diff --git a/packages/download_repository/analysis_options.yaml b/packages/download_repository/analysis_options.yaml index 273cb60f..84e34fba 100644 --- a/packages/download_repository/analysis_options.yaml +++ b/packages/download_repository/analysis_options.yaml @@ -1 +1 @@ -include: package:very_good_analysis/analysis_options.3.1.0.yaml +include: package:very_good_analysis/analysis_options.4.0.0.yaml diff --git a/packages/download_repository/pubspec.yaml b/packages/download_repository/pubspec.yaml index 53d192bb..576d1ee4 100644 --- a/packages/download_repository/pubspec.yaml +++ b/packages/download_repository/pubspec.yaml @@ -4,8 +4,8 @@ version: 0.1.0+1 publish_to: none environment: - sdk: ">=2.18.0 <3.0.0" - flutter: 3.3.7 + sdk: ">=2.19.0 <3.0.0" + flutter: 3.7.12 dependencies: camera: ^0.10.0+3 @@ -17,4 +17,4 @@ dev_dependencies: flutter_test: sdk: flutter mocktail: ^0.3.0 - very_good_analysis: ^3.1.0 + very_good_analysis: ^4.0.0 diff --git a/packages/face_geometry/analysis_options.yaml b/packages/face_geometry/analysis_options.yaml index 273cb60f..84e34fba 100644 --- a/packages/face_geometry/analysis_options.yaml +++ b/packages/face_geometry/analysis_options.yaml @@ -1 +1 @@ -include: package:very_good_analysis/analysis_options.3.1.0.yaml +include: package:very_good_analysis/analysis_options.4.0.0.yaml diff --git a/packages/face_geometry/lib/face_geometry.dart b/packages/face_geometry/lib/face_geometry.dart index 26d1c4b1..9019e6ea 100644 --- a/packages/face_geometry/lib/face_geometry.dart +++ b/packages/face_geometry/lib/face_geometry.dart @@ -1,4 +1,2 @@ -library face_geometry; - export 'src/face_geometry.dart'; export 'src/models/models.dart'; diff --git a/packages/face_geometry/lib/src/models/normalization.dart b/packages/face_geometry/lib/src/models/normalization.dart index 1f3becef..9656d422 100644 --- a/packages/face_geometry/lib/src/models/normalization.dart +++ b/packages/face_geometry/lib/src/models/normalization.dart @@ -107,10 +107,10 @@ extension NormalizeKeypoint on tf.Keypoint { extension NormalizeNum on num { /// {@macro normalize_number} double normalize({ - num fromMin = 0, required num fromMax, - num toMin = 0, required num toMax, + num fromMin = 0, + num toMin = 0, }) { return (toMax - toMin) * ((this - fromMin) / (fromMax - fromMin)) + toMin; } diff --git a/packages/face_geometry/pubspec.yaml b/packages/face_geometry/pubspec.yaml index c20c0cca..13ad0891 100644 --- a/packages/face_geometry/pubspec.yaml +++ b/packages/face_geometry/pubspec.yaml @@ -4,7 +4,7 @@ version: 1.0.0+1 publish_to: none environment: - sdk: ">=2.17.0 <3.0.0" + sdk: ">=2.19.0 <3.0.0" dependencies: equatable: ^2.0.5 @@ -15,4 +15,4 @@ dependencies: dev_dependencies: mocktail: ^0.3.0 test: ^1.19.2 - very_good_analysis: ^3.1.0 + very_good_analysis: ^4.0.0 diff --git a/packages/firebase_analytics_client/analysis_options.yaml b/packages/firebase_analytics_client/analysis_options.yaml index e8f24018..1c6f6452 100644 --- a/packages/firebase_analytics_client/analysis_options.yaml +++ b/packages/firebase_analytics_client/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:very_good_analysis/analysis_options.3.1.0.yaml +include: package:very_good_analysis/analysis_options.4.0.0.yaml linter: rules: avoid_web_libraries_in_flutter: false diff --git a/packages/firebase_analytics_client/lib/firebase_analytics_client.dart b/packages/firebase_analytics_client/lib/firebase_analytics_client.dart index 77b85a64..bb0818ae 100644 --- a/packages/firebase_analytics_client/lib/firebase_analytics_client.dart +++ b/packages/firebase_analytics_client/lib/firebase_analytics_client.dart @@ -1,4 +1,2 @@ -library firebase_analytics_client; - export 'src/firebase_analytics_client_io.dart' if (dart.library.html) 'src/firebase_analytics_client_web.dart'; diff --git a/packages/firebase_analytics_client/pubspec.yaml b/packages/firebase_analytics_client/pubspec.yaml index 3d25cb58..8ae9e323 100644 --- a/packages/firebase_analytics_client/pubspec.yaml +++ b/packages/firebase_analytics_client/pubspec.yaml @@ -2,7 +2,7 @@ name: firebase_analytics_client description: A Flutter package which adds analytics support environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=2.19.0 <3.0.0" dependencies: meta: ^1.7.0 @@ -10,4 +10,4 @@ dependencies: dev_dependencies: mocktail: ^0.1.1 test: ^1.21.5 - very_good_analysis: ^3.1.0 + very_good_analysis: ^4.0.0 diff --git a/packages/firebase_analytics_client/test/src/firebase_analytics_client_io_test.dart b/packages/firebase_analytics_client/test/src/firebase_analytics_client_io_test.dart index 30f9758e..3b3fe9e5 100644 --- a/packages/firebase_analytics_client/test/src/firebase_analytics_client_io_test.dart +++ b/packages/firebase_analytics_client/test/src/firebase_analytics_client_io_test.dart @@ -1,4 +1,6 @@ @TestOn('!chrome') +library firebase_analytics_client_io_test; + import 'package:firebase_analytics_client/firebase_analytics_client.dart'; import 'package:test/test.dart'; diff --git a/packages/firebase_analytics_client/test/src/firebase_analytics_client_web_test.dart b/packages/firebase_analytics_client/test/src/firebase_analytics_client_web_test.dart index 0de5168f..69ad193f 100644 --- a/packages/firebase_analytics_client/test/src/firebase_analytics_client_web_test.dart +++ b/packages/firebase_analytics_client/test/src/firebase_analytics_client_web_test.dart @@ -1,4 +1,5 @@ @TestOn('chrome') +library firebase_analytics_client_web_test; import 'dart:js'; diff --git a/packages/holobooth_ui/analysis_options.yaml b/packages/holobooth_ui/analysis_options.yaml index 5fa26b8f..84e34fba 100644 --- a/packages/holobooth_ui/analysis_options.yaml +++ b/packages/holobooth_ui/analysis_options.yaml @@ -1 +1 @@ -include: package:very_good_analysis/analysis_options.3.1.0.yaml \ No newline at end of file +include: package:very_good_analysis/analysis_options.4.0.0.yaml diff --git a/packages/holobooth_ui/gallery/analysis_options.yaml b/packages/holobooth_ui/gallery/analysis_options.yaml index 3fd177be..84e34fba 100644 --- a/packages/holobooth_ui/gallery/analysis_options.yaml +++ b/packages/holobooth_ui/gallery/analysis_options.yaml @@ -1,4 +1 @@ -include: package:very_good_analysis/analysis_options.yaml - -linter: - rules: +include: package:very_good_analysis/analysis_options.4.0.0.yaml diff --git a/packages/holobooth_ui/gallery/pubspec.yaml b/packages/holobooth_ui/gallery/pubspec.yaml index 6caf36d8..cffa97dd 100644 --- a/packages/holobooth_ui/gallery/pubspec.yaml +++ b/packages/holobooth_ui/gallery/pubspec.yaml @@ -1,12 +1,12 @@ name: gallery description: UI gallery for the photoboth ui. -publish_to: 'none' +publish_to: "none" version: 1.0.0+1 environment: - sdk: '>=2.19.0-374.1.beta <3.0.0' + sdk: ">=2.19.0-374.1.beta <3.0.0" dependencies: cupertino_icons: ^1.0.2 @@ -20,7 +20,7 @@ dev_dependencies: flutter_test: sdk: flutter - very_good_analysis: ^3.1.0 + very_good_analysis: ^4.0.0 flutter: uses-material-design: true diff --git a/packages/holobooth_ui/lib/holobooth_ui.dart b/packages/holobooth_ui/lib/holobooth_ui.dart index 62e483a6..b73c305e 100644 --- a/packages/holobooth_ui/lib/holobooth_ui.dart +++ b/packages/holobooth_ui/lib/holobooth_ui.dart @@ -1,5 +1,3 @@ -library holobooth_ui; - export 'package:flame/flame.dart' show Flame; export 'src/colors.dart'; diff --git a/packages/holobooth_ui/lib/src/widgets/animated_fade_in.dart b/packages/holobooth_ui/lib/src/widgets/animated_fade_in.dart index cf66f6c9..8fe4f99a 100644 --- a/packages/holobooth_ui/lib/src/widgets/animated_fade_in.dart +++ b/packages/holobooth_ui/lib/src/widgets/animated_fade_in.dart @@ -8,9 +8,9 @@ const _defaultFadeInDuration = Duration(seconds: 1); class AnimatedFadeIn extends StatefulWidget { /// {@macro animated_fade_in} const AnimatedFadeIn({ - super.key, required this.child, this.duration = _defaultFadeInDuration, + super.key, }); /// The child which will be faded in. diff --git a/packages/holobooth_ui/lib/src/widgets/animated_sprite.dart b/packages/holobooth_ui/lib/src/widgets/animated_sprite.dart index 23612b9e..16631c92 100644 --- a/packages/holobooth_ui/lib/src/widgets/animated_sprite.dart +++ b/packages/holobooth_ui/lib/src/widgets/animated_sprite.dart @@ -50,11 +50,11 @@ enum AnimationMode { class AnimatedSprite extends StatefulWidget { /// {@macro animated_sprite} const AnimatedSprite({ - super.key, required this.sprites, this.mode = AnimationMode.loop, this.showLoadingIndicator = true, this.loadingIndicatorColor = HoloBoothColors.orange, + super.key, }); /// The collection of sprites which will be animated. diff --git a/packages/holobooth_ui/lib/src/widgets/app_animated_cross_fade.dart b/packages/holobooth_ui/lib/src/widgets/app_animated_cross_fade.dart index 5820fe99..36c58039 100644 --- a/packages/holobooth_ui/lib/src/widgets/app_animated_cross_fade.dart +++ b/packages/holobooth_ui/lib/src/widgets/app_animated_cross_fade.dart @@ -8,10 +8,10 @@ class AppAnimatedCrossFade extends StatelessWidget { /// {@macro app_animated_cross_fade} const AppAnimatedCrossFade({ - super.key, required this.firstChild, required this.secondChild, required this.crossFadeState, + super.key, }); /// First [Widget] to display diff --git a/packages/holobooth_ui/lib/src/widgets/blurry_container.dart b/packages/holobooth_ui/lib/src/widgets/blurry_container.dart index 159cf239..6ae2b501 100644 --- a/packages/holobooth_ui/lib/src/widgets/blurry_container.dart +++ b/packages/holobooth_ui/lib/src/widgets/blurry_container.dart @@ -9,7 +9,6 @@ import 'package:flutter/material.dart'; class BlurryContainer extends StatelessWidget { /// {@macro blurry_container} const BlurryContainer({ - super.key, required this.child, this.height, this.width, @@ -17,6 +16,7 @@ class BlurryContainer extends StatelessWidget { this.color = Colors.transparent, this.padding = EdgeInsets.zero, this.borderRadius = BorderRadius.zero, + super.key, }); /// The child shown in top of the container. diff --git a/packages/holobooth_ui/lib/src/widgets/clickable.dart b/packages/holobooth_ui/lib/src/widgets/clickable.dart index f5f72ebe..b5a614fb 100644 --- a/packages/holobooth_ui/lib/src/widgets/clickable.dart +++ b/packages/holobooth_ui/lib/src/widgets/clickable.dart @@ -6,9 +6,9 @@ import 'package:flutter/material.dart'; class Clickable extends StatelessWidget { /// {@macro clickable} const Clickable({ - super.key, required this.child, required this.onPressed, + super.key, }); /// Child to be rendered diff --git a/packages/holobooth_ui/lib/src/widgets/gradient_elevated_button.dart b/packages/holobooth_ui/lib/src/widgets/gradient_elevated_button.dart index a53d90ce..61a9c549 100644 --- a/packages/holobooth_ui/lib/src/widgets/gradient_elevated_button.dart +++ b/packages/holobooth_ui/lib/src/widgets/gradient_elevated_button.dart @@ -10,9 +10,9 @@ import 'package:holobooth_ui/holobooth_ui.dart'; class GradientElevatedButton extends StatelessWidget { /// {@macro gradient_evelevated_button} const GradientElevatedButton({ - super.key, required this.child, required this.onPressed, + super.key, }); /// Button's child. diff --git a/packages/holobooth_ui/lib/src/widgets/gradient_frame.dart b/packages/holobooth_ui/lib/src/widgets/gradient_frame.dart index 8b461692..aff8719b 100644 --- a/packages/holobooth_ui/lib/src/widgets/gradient_frame.dart +++ b/packages/holobooth_ui/lib/src/widgets/gradient_frame.dart @@ -7,7 +7,6 @@ import 'package:holobooth_ui/holobooth_ui.dart'; class GradientFrame extends StatelessWidget { /// {@macro gradient_frame} const GradientFrame({ - super.key, required this.child, this.height, this.width, @@ -15,6 +14,7 @@ class GradientFrame extends StatelessWidget { this.borderRadius = 38, this.backgroundColor, this.gradient, + super.key, }); /// Child of the frame. diff --git a/packages/holobooth_ui/lib/src/widgets/gradient_outlined_button.dart b/packages/holobooth_ui/lib/src/widgets/gradient_outlined_button.dart index a8fa3dd2..c8f53b10 100644 --- a/packages/holobooth_ui/lib/src/widgets/gradient_outlined_button.dart +++ b/packages/holobooth_ui/lib/src/widgets/gradient_outlined_button.dart @@ -8,11 +8,11 @@ import 'package:holobooth_ui/holobooth_ui.dart'; class GradientOutlinedButton extends StatelessWidget { /// {@macro gradient_outlined_button} const GradientOutlinedButton({ - super.key, - this.onPressed, required this.icon, required this.label, + this.onPressed, this.loading = false, + super.key, }); /// Called when the button is pressed. diff --git a/packages/holobooth_ui/lib/src/widgets/gradient_text.dart b/packages/holobooth_ui/lib/src/widgets/gradient_text.dart index f5fbe0ff..2ab92da0 100644 --- a/packages/holobooth_ui/lib/src/widgets/gradient_text.dart +++ b/packages/holobooth_ui/lib/src/widgets/gradient_text.dart @@ -8,11 +8,11 @@ import 'package:holobooth_ui/holobooth_ui.dart'; class GradientText extends StatelessWidget { /// {@macro gradient_text} const GradientText({ - super.key, required this.text, this.style, this.textAlign, this.gradient = HoloBoothGradients.secondaryFour, + super.key, }); /// The text. diff --git a/packages/holobooth_ui/lib/src/widgets/holo_booth_alert_dialog.dart b/packages/holobooth_ui/lib/src/widgets/holo_booth_alert_dialog.dart index 7363e9b3..c156e374 100644 --- a/packages/holobooth_ui/lib/src/widgets/holo_booth_alert_dialog.dart +++ b/packages/holobooth_ui/lib/src/widgets/holo_booth_alert_dialog.dart @@ -7,11 +7,11 @@ import 'package:holobooth_ui/holobooth_ui.dart'; class HoloBoothAlertDialog extends StatelessWidget { /// {@macro holo_booth_alert_dialog} const HoloBoothAlertDialog({ - super.key, required this.child, this.height, this.width, this.borderRadius = 38, + super.key, }); /// Widget wrapped on the dialog. diff --git a/packages/holobooth_ui/lib/src/widgets/platform_builder.dart b/packages/holobooth_ui/lib/src/widgets/platform_builder.dart index af84cb5c..3b6ff4cd 100644 --- a/packages/holobooth_ui/lib/src/widgets/platform_builder.dart +++ b/packages/holobooth_ui/lib/src/widgets/platform_builder.dart @@ -7,9 +7,9 @@ import 'package:platform_helper/platform_helper.dart'; class PlatformBuilder extends StatelessWidget { /// {@macro platform_builder} PlatformBuilder({ - super.key, required this.mobile, required this.desktop, + super.key, PlatformHelper? platformHelper, }) : _platformHelper = platformHelper ?? PlatformHelper(); diff --git a/packages/holobooth_ui/lib/src/widgets/preview_image.dart b/packages/holobooth_ui/lib/src/widgets/preview_image.dart index 6e6ff273..27aba905 100644 --- a/packages/holobooth_ui/lib/src/widgets/preview_image.dart +++ b/packages/holobooth_ui/lib/src/widgets/preview_image.dart @@ -6,10 +6,10 @@ import 'package:flutter/material.dart'; class PreviewImage extends StatelessWidget { /// {@macro preview_image} const PreviewImage({ - super.key, required this.data, this.height, this.width, + super.key, }); /// Data URI representing the data of the image diff --git a/packages/holobooth_ui/lib/src/widgets/responsive_layout_builder.dart b/packages/holobooth_ui/lib/src/widgets/responsive_layout_builder.dart index 7fd4a7b3..2747208c 100644 --- a/packages/holobooth_ui/lib/src/widgets/responsive_layout_builder.dart +++ b/packages/holobooth_ui/lib/src/widgets/responsive_layout_builder.dart @@ -11,12 +11,12 @@ typedef ResponsiveLayoutWidgetBuilder = Widget Function(BuildContext, Widget?); class ResponsiveLayoutBuilder extends StatelessWidget { /// {@macro responsive_layout_builder} const ResponsiveLayoutBuilder({ - super.key, required this.small, required this.large, this.medium, this.xLarge, this.child, + super.key, }); /// [ResponsiveLayoutWidgetBuilder] for small layout. diff --git a/packages/holobooth_ui/pubspec.yaml b/packages/holobooth_ui/pubspec.yaml index 2271a226..5e52021d 100644 --- a/packages/holobooth_ui/pubspec.yaml +++ b/packages/holobooth_ui/pubspec.yaml @@ -4,7 +4,7 @@ version: 1.0.0+1 publish_to: none environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=2.19.0 <3.0.0" dependencies: equatable: ^2.0.5 @@ -23,7 +23,7 @@ dev_dependencies: mocktail: ^0.1.1 plugin_platform_interface: ^2.1.3 url_launcher_platform_interface: ^2.1.0 - very_good_analysis: ^3.1.0 + very_good_analysis: ^4.0.0 flutter: uses-material-design: true diff --git a/packages/js_interop_utils/pubspec.yaml b/packages/js_interop_utils/pubspec.yaml index ade944ec..7011fa5c 100644 --- a/packages/js_interop_utils/pubspec.yaml +++ b/packages/js_interop_utils/pubspec.yaml @@ -4,6 +4,6 @@ version: 1.0.0+1 publish_to: none environment: - sdk: ">=2.17.0 <3.0.0" + sdk: ">=2.19.0 <3.0.0" dependencies: js: ^0.6.4 diff --git a/packages/platform_helper/pubspec.yaml b/packages/platform_helper/pubspec.yaml index cef47915..8720ba26 100644 --- a/packages/platform_helper/pubspec.yaml +++ b/packages/platform_helper/pubspec.yaml @@ -2,7 +2,7 @@ name: platform_helper description: A Dart package which helps detect the host platform environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=2.19.0 <3.0.0" dependencies: meta: ^1.8.0 @@ -10,4 +10,4 @@ dependencies: dev_dependencies: mocktail: ^0.1.1 test: ^1.21.5 - very_good_analysis: ^3.1.0 + very_good_analysis: ^4.0.0 diff --git a/packages/tensorflow_models/tensorflow_models/analysis_options.yaml b/packages/tensorflow_models/tensorflow_models/analysis_options.yaml index ff9c544b..d767e5d3 100644 --- a/packages/tensorflow_models/tensorflow_models/analysis_options.yaml +++ b/packages/tensorflow_models/tensorflow_models/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:very_good_analysis/analysis_options.3.1.0.yaml +include: package:very_good_analysis/analysis_options.4.0.0.yaml linter: rules: public_member_api_docs: false diff --git a/packages/tensorflow_models/tensorflow_models/example/analysis_options.yaml b/packages/tensorflow_models/tensorflow_models/example/analysis_options.yaml index ff9c544b..d86b4aa3 100644 --- a/packages/tensorflow_models/tensorflow_models/example/analysis_options.yaml +++ b/packages/tensorflow_models/tensorflow_models/example/analysis_options.yaml @@ -1,4 +1,9 @@ -include: package:very_good_analysis/analysis_options.3.1.0.yaml +include: package:very_good_analysis/analysis_options.4.0.0.yaml + linter: rules: public_member_api_docs: false + +analyzer: + exclude: + - lib/**/*.gen.dart diff --git a/packages/tensorflow_models/tensorflow_models/example/lib/main.dart b/packages/tensorflow_models/tensorflow_models/example/lib/main.dart index d66a62b2..44ad5bef 100644 --- a/packages/tensorflow_models/tensorflow_models/example/lib/main.dart +++ b/packages/tensorflow_models/tensorflow_models/example/lib/main.dart @@ -4,7 +4,7 @@ import 'package:flutter/material.dart'; void main() => runApp(const MaterialApp(home: _App())); class _App extends StatelessWidget { - const _App({Key? key}) : super(key: key); + const _App(); static final _pages = Function()>{ 'Landmarks Video Stream': LandmarksVideoStreamPage.route, diff --git a/packages/tensorflow_models/tensorflow_models/example/lib/src/pages/landmarks_dash_page.dart b/packages/tensorflow_models/tensorflow_models/example/lib/src/pages/landmarks_dash_page.dart index b1ac3f83..10edf67f 100644 --- a/packages/tensorflow_models/tensorflow_models/example/lib/src/pages/landmarks_dash_page.dart +++ b/packages/tensorflow_models/tensorflow_models/example/lib/src/pages/landmarks_dash_page.dart @@ -8,7 +8,7 @@ import 'package:rive/rive.dart'; import 'package:tensorflow_models/tensorflow_models.dart' as tf; class LandmarksDashPage extends StatelessWidget { - const LandmarksDashPage({Key? key}) : super(key: key); + const LandmarksDashPage({super.key}); static Route route() => MaterialPageRoute(builder: (_) => const LandmarksDashPage()); @@ -18,7 +18,7 @@ class LandmarksDashPage extends StatelessWidget { } class _LandmarksDashView extends StatefulWidget { - const _LandmarksDashView({Key? key}) : super(key: key); + const _LandmarksDashView(); @override State<_LandmarksDashView> createState() => _LandmarksDashViewState(); @@ -90,9 +90,8 @@ class _LandmarksDashViewState extends State<_LandmarksDashView> { class _Dash extends StatefulWidget { const _Dash({ - Key? key, required this.faceGeometry, - }) : super(key: key); + }); final FaceGeometry faceGeometry; diff --git a/packages/tensorflow_models/tensorflow_models/example/lib/src/pages/landmarks_detect_blink_page.dart b/packages/tensorflow_models/tensorflow_models/example/lib/src/pages/landmarks_detect_blink_page.dart index 7db7d820..e45cd0aa 100644 --- a/packages/tensorflow_models/tensorflow_models/example/lib/src/pages/landmarks_detect_blink_page.dart +++ b/packages/tensorflow_models/tensorflow_models/example/lib/src/pages/landmarks_detect_blink_page.dart @@ -5,7 +5,7 @@ import 'package:flutter/material.dart'; import 'package:tensorflow_models/tensorflow_models.dart' as tf; class LandmarksDetectBlinkPage extends StatelessWidget { - const LandmarksDetectBlinkPage({Key? key}) : super(key: key); + const LandmarksDetectBlinkPage({super.key}); static Route route() => MaterialPageRoute(builder: (_) => const LandmarksDetectBlinkPage()); @@ -15,7 +15,7 @@ class LandmarksDetectBlinkPage extends StatelessWidget { } class _LandmarksDetectBlinkView extends StatefulWidget { - const _LandmarksDetectBlinkView({Key? key}) : super(key: key); + const _LandmarksDetectBlinkView(); @override State<_LandmarksDetectBlinkView> createState() => diff --git a/packages/tensorflow_models/tensorflow_models/example/lib/src/pages/landmarks_open_mouth_page.dart b/packages/tensorflow_models/tensorflow_models/example/lib/src/pages/landmarks_open_mouth_page.dart index 1f3e7c8f..01615e9a 100644 --- a/packages/tensorflow_models/tensorflow_models/example/lib/src/pages/landmarks_open_mouth_page.dart +++ b/packages/tensorflow_models/tensorflow_models/example/lib/src/pages/landmarks_open_mouth_page.dart @@ -7,7 +7,7 @@ import 'package:just_audio/just_audio.dart'; import 'package:tensorflow_models/tensorflow_models.dart' as tf; class LandmarksOpenMouthPage extends StatelessWidget { - const LandmarksOpenMouthPage({Key? key}) : super(key: key); + const LandmarksOpenMouthPage({super.key}); static Route route() => MaterialPageRoute(builder: (_) => const LandmarksOpenMouthPage()); @@ -17,7 +17,7 @@ class LandmarksOpenMouthPage extends StatelessWidget { } class _LandmarksOpenMouthPage extends StatefulWidget { - const _LandmarksOpenMouthPage({Key? key}) : super(key: key); + const _LandmarksOpenMouthPage(); @override State<_LandmarksOpenMouthPage> createState() => diff --git a/packages/tensorflow_models/tensorflow_models/example/lib/src/pages/landmarks_video_stream_page.dart b/packages/tensorflow_models/tensorflow_models/example/lib/src/pages/landmarks_video_stream_page.dart index bb65b885..06cbe8f3 100644 --- a/packages/tensorflow_models/tensorflow_models/example/lib/src/pages/landmarks_video_stream_page.dart +++ b/packages/tensorflow_models/tensorflow_models/example/lib/src/pages/landmarks_video_stream_page.dart @@ -5,7 +5,7 @@ import 'package:flutter/material.dart'; import 'package:tensorflow_models/tensorflow_models.dart' as tf; class LandmarksVideoStreamPage extends StatelessWidget { - const LandmarksVideoStreamPage({Key? key}) : super(key: key); + const LandmarksVideoStreamPage({super.key}); static Route route() => MaterialPageRoute(builder: (_) => const LandmarksVideoStreamPage()); @@ -15,7 +15,7 @@ class LandmarksVideoStreamPage extends StatelessWidget { } class _LandmarksVideoStreamView extends StatefulWidget { - const _LandmarksVideoStreamView({Key? key}) : super(key: key); + const _LandmarksVideoStreamView(); @override State<_LandmarksVideoStreamView> createState() => diff --git a/packages/tensorflow_models/tensorflow_models/example/lib/src/widgets/camera_view.dart b/packages/tensorflow_models/tensorflow_models/example/lib/src/widgets/camera_view.dart index 7febffa1..a9ccc053 100644 --- a/packages/tensorflow_models/tensorflow_models/example/lib/src/widgets/camera_view.dart +++ b/packages/tensorflow_models/tensorflow_models/example/lib/src/widgets/camera_view.dart @@ -4,7 +4,7 @@ import 'package:camera/camera.dart'; import 'package:flutter/material.dart'; class CameraView extends StatefulWidget { - const CameraView({Key? key, this.onCameraReady}) : super(key: key); + const CameraView({super.key, this.onCameraReady}); /// Callback called once the camera has been initialized. /// diff --git a/packages/tensorflow_models/tensorflow_models/example/lib/src/widgets/dash_with_background.dart b/packages/tensorflow_models/tensorflow_models/example/lib/src/widgets/dash_with_background.dart index 5a0acaa4..7c186cb2 100644 --- a/packages/tensorflow_models/tensorflow_models/example/lib/src/widgets/dash_with_background.dart +++ b/packages/tensorflow_models/tensorflow_models/example/lib/src/widgets/dash_with_background.dart @@ -5,9 +5,9 @@ import 'package:rive/rive.dart'; class DashWithBackground extends StatefulWidget { const DashWithBackground({ - Key? key, required this.faceGeometry, - }) : super(key: key); + super.key, + }); final FaceGeometry? faceGeometry; diff --git a/packages/tensorflow_models/tensorflow_models/example/lib/src/widgets/face_geometry_overlay.dart b/packages/tensorflow_models/tensorflow_models/example/lib/src/widgets/face_geometry_overlay.dart index cf9bb91e..6864b039 100644 --- a/packages/tensorflow_models/tensorflow_models/example/lib/src/widgets/face_geometry_overlay.dart +++ b/packages/tensorflow_models/tensorflow_models/example/lib/src/widgets/face_geometry_overlay.dart @@ -3,9 +3,9 @@ import 'package:flutter/widgets.dart'; class FaceGeometryOverlay extends StatelessWidget { const FaceGeometryOverlay({ - Key? key, required this.faceGeometry, - }) : super(key: key); + super.key, + }); final FaceGeometry faceGeometry; diff --git a/packages/tensorflow_models/tensorflow_models/example/lib/src/widgets/faces_detector_builder.dart b/packages/tensorflow_models/tensorflow_models/example/lib/src/widgets/faces_detector_builder.dart index ab0ff9c4..0ad7f5a1 100644 --- a/packages/tensorflow_models/tensorflow_models/example/lib/src/widgets/faces_detector_builder.dart +++ b/packages/tensorflow_models/tensorflow_models/example/lib/src/widgets/faces_detector_builder.dart @@ -7,10 +7,10 @@ import 'package:tensorflow_models/tensorflow_models.dart' as tf; class FacesDetectorBuilder extends StatefulWidget { const FacesDetectorBuilder({ - Key? key, required this.cameraController, required this.builder, - }) : super(key: key); + super.key, + }); final CameraController cameraController; final Widget Function(BuildContext context, tf.Faces faces) builder; diff --git a/packages/tensorflow_models/tensorflow_models/example/pubspec.yaml b/packages/tensorflow_models/tensorflow_models/example/pubspec.yaml index c5d11f2b..fe0b5e75 100644 --- a/packages/tensorflow_models/tensorflow_models/example/pubspec.yaml +++ b/packages/tensorflow_models/tensorflow_models/example/pubspec.yaml @@ -4,7 +4,7 @@ version: 1.0.0+1 publish_to: none environment: - sdk: ">=2.12.0-0 <3.0.0" + sdk: ">=2.19.0 <3.0.0" dependencies: audio_session: ^0.1.10 @@ -25,7 +25,7 @@ dependencies: dev_dependencies: build_runner: flutter_gen_runner: - very_good_analysis: ^3.1.0 + very_good_analysis: ^4.0.0 dependency_overrides: camera: @@ -39,7 +39,6 @@ dependency_overrides: path: packages/camera/camera_web ref: da722ef898b1da47c339a17653067e070bb8e608 - flutter_gen: output: lib/assets/ line_length: 80 diff --git a/packages/tensorflow_models/tensorflow_models/lib/tensorflow_models.dart b/packages/tensorflow_models/tensorflow_models/lib/tensorflow_models.dart index 42e0d2be..059bdf0b 100644 --- a/packages/tensorflow_models/tensorflow_models/lib/tensorflow_models.dart +++ b/packages/tensorflow_models/tensorflow_models/lib/tensorflow_models.dart @@ -1,5 +1,3 @@ -library tensorflow_models; - export 'package:tensorflow_models_platform_interface/tensorflow_models_platform_interface.dart'; export 'src/tensor_flow_face_landmarks.dart'; diff --git a/packages/tensorflow_models/tensorflow_models/pubspec.yaml b/packages/tensorflow_models/tensorflow_models/pubspec.yaml index 3a4f4d3e..871b28c2 100644 --- a/packages/tensorflow_models/tensorflow_models/pubspec.yaml +++ b/packages/tensorflow_models/tensorflow_models/pubspec.yaml @@ -4,7 +4,7 @@ version: 0.1.0 publish_to: none environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=2.19.0 <3.0.0" flutter: 3.3.1 flutter: @@ -28,4 +28,4 @@ dev_dependencies: sdk: flutter mocktail: ^0.1.0 plugin_platform_interface: ^2.1.2 - very_good_analysis: ^3.1.0 + very_good_analysis: ^4.0.0 diff --git a/packages/tensorflow_models/tensorflow_models_platform_interface/analysis_options.yaml b/packages/tensorflow_models/tensorflow_models_platform_interface/analysis_options.yaml index ff9c544b..d767e5d3 100644 --- a/packages/tensorflow_models/tensorflow_models_platform_interface/analysis_options.yaml +++ b/packages/tensorflow_models/tensorflow_models_platform_interface/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:very_good_analysis/analysis_options.3.1.0.yaml +include: package:very_good_analysis/analysis_options.4.0.0.yaml linter: rules: public_member_api_docs: false diff --git a/packages/tensorflow_models/tensorflow_models_platform_interface/lib/src/face_landmarks_detection/types/types.dart b/packages/tensorflow_models/tensorflow_models_platform_interface/lib/src/face_landmarks_detection/types/types.dart index 3f246c7b..e494546e 100644 --- a/packages/tensorflow_models/tensorflow_models_platform_interface/lib/src/face_landmarks_detection/types/types.dart +++ b/packages/tensorflow_models/tensorflow_models_platform_interface/lib/src/face_landmarks_detection/types/types.dart @@ -4,6 +4,8 @@ /// See also: /// /// * [TypeScript types implementation](https://github.com/tensorflow/tfjs-models/blob/master/face-landmarks-detection/src/types.ts) +library types; + import 'dart:collection'; import 'package:meta/meta.dart'; diff --git a/packages/tensorflow_models/tensorflow_models_platform_interface/lib/tensorflow_models_platform_interface.dart b/packages/tensorflow_models/tensorflow_models_platform_interface/lib/tensorflow_models_platform_interface.dart index f5c64a54..e3c92718 100644 --- a/packages/tensorflow_models/tensorflow_models_platform_interface/lib/tensorflow_models_platform_interface.dart +++ b/packages/tensorflow_models/tensorflow_models_platform_interface/lib/tensorflow_models_platform_interface.dart @@ -1,5 +1,3 @@ -library tensorflow_models_platform_interface; - export 'src/face_landmarks_detection/face_landmarks_detection.dart'; export 'src/method_channel/method_channel_tensorflow_models.dart'; export 'src/platform_interface/tensorflow_models_platform.dart'; diff --git a/packages/tensorflow_models/tensorflow_models_platform_interface/pubspec.yaml b/packages/tensorflow_models/tensorflow_models_platform_interface/pubspec.yaml index 13394a7b..c1ecc08c 100644 --- a/packages/tensorflow_models/tensorflow_models_platform_interface/pubspec.yaml +++ b/packages/tensorflow_models/tensorflow_models_platform_interface/pubspec.yaml @@ -3,7 +3,7 @@ description: A common platform interface for the tensorflow_models plugin. version: 0.0.1 environment: - sdk: ">=2.18.0 <3.0.0" + sdk: ">=2.19.0 <3.0.0" dependencies: meta: ^1.8.0 @@ -12,4 +12,4 @@ dependencies: dev_dependencies: mocktail: ^0.3.0 test: ^1.21.5 - very_good_analysis: ^3.1.0 + very_good_analysis: ^4.0.0 diff --git a/packages/tensorflow_models/tensorflow_models_web/analysis_options.yaml b/packages/tensorflow_models/tensorflow_models_web/analysis_options.yaml index b1e3dab3..3857bdff 100644 --- a/packages/tensorflow_models/tensorflow_models_web/analysis_options.yaml +++ b/packages/tensorflow_models/tensorflow_models_web/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:very_good_analysis/analysis_options.3.1.0.yaml +include: package:very_good_analysis/analysis_options.4.0.0.yaml analyzer: exclude: - "**/interop/generated/*.dart" diff --git a/packages/tensorflow_models/tensorflow_models_web/lib/tensorflow_models_web.dart b/packages/tensorflow_models/tensorflow_models_web/lib/tensorflow_models_web.dart index fb2e3333..5ebd2d2c 100644 --- a/packages/tensorflow_models/tensorflow_models_web/lib/tensorflow_models_web.dart +++ b/packages/tensorflow_models/tensorflow_models_web/lib/tensorflow_models_web.dart @@ -1,3 +1 @@ -library tensorflow_models_web; - export 'src/tensorflow_models_plugin.dart'; diff --git a/packages/tensorflow_models/tensorflow_models_web/pubspec.yaml b/packages/tensorflow_models/tensorflow_models_web/pubspec.yaml index 0a86a5dc..93542787 100644 --- a/packages/tensorflow_models/tensorflow_models_web/pubspec.yaml +++ b/packages/tensorflow_models/tensorflow_models_web/pubspec.yaml @@ -3,8 +3,8 @@ description: A tensorflow_models plugin for flutter web publish_to: none environment: - sdk: ">=2.18.0 <3.0.0" - flutter: 3.3.1 + sdk: ">=2.19.0 <3.0.0" + flutter: 3.7.12 flutter: plugin: @@ -29,4 +29,4 @@ dev_dependencies: image: ^3.2.2 integration_test: sdk: flutter - very_good_analysis: ^3.1.0 + very_good_analysis: ^4.0.0 diff --git a/packages/tensorflow_models/tensorflow_models_web/test/src/tensorflow_models_plugin_test.dart b/packages/tensorflow_models/tensorflow_models_web/test/src/tensorflow_models_plugin_test.dart index 31822858..6494d102 100644 --- a/packages/tensorflow_models/tensorflow_models_web/test/src/tensorflow_models_plugin_test.dart +++ b/packages/tensorflow_models/tensorflow_models_web/test/src/tensorflow_models_plugin_test.dart @@ -12,10 +12,10 @@ import '../test_assets/real_face.jpg.dart' as real_face; class AppTester extends StatefulWidget { const AppTester({ - super.key, required this.imagePath, required this.encodedAsset, required this.imageSize, + super.key, }); final String imagePath; diff --git a/pubspec.lock b/pubspec.lock index df6fc6b1..d52aa5ba 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1060,10 +1060,10 @@ packages: dependency: "direct dev" description: name: very_good_analysis - sha256: "4815adc7ded57657038d2bb2a7f332c50e3c8152f7d3c6acf8f6b7c0cc81e5e2" + sha256: ebc48c51db35beeeec8c414e32f7bd78e612bd7f5992ccb0d46e19edaeb40b08 url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "4.0.0+1" video_player: dependency: "direct main" description: @@ -1169,5 +1169,5 @@ packages: source: hosted version: "3.1.1" sdks: - dart: ">=2.18.0 <3.0.0" - flutter: ">=3.7.1" + dart: ">=2.19.0 <3.0.0" + flutter: ">=3.7.12" diff --git a/pubspec.yaml b/pubspec.yaml index e2515859..df259437 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,8 +4,8 @@ version: 1.0.0+1 publish_to: none environment: - sdk: ">=2.18.0 <3.0.0" - flutter: 3.7.1 + sdk: ">=2.19.0 <3.0.0" + flutter: 3.7.12 dependencies: analytics_repository: @@ -79,7 +79,7 @@ dev_dependencies: mocktail_image_network: ^0.3.1 plugin_platform_interface: ^2.1.3 url_launcher_platform_interface: ^2.1.0 - very_good_analysis: ^3.1.0 + very_good_analysis: ^4.0.0 video_player_platform_interface: ^6.0.1 flutter_gen: