From 58aa8ef58b68b31fdb2f2c6843571c9f894bc293 Mon Sep 17 00:00:00 2001 From: Honza Bittner Date: Thu, 4 Jan 2024 17:58:59 +0100 Subject: [PATCH] Bump dependencies --- .github/workflows/storybook.yaml | 8 ++++---- CHANGELOG.md | 3 +++ example/.fvm/fvm_config.json | 2 +- example/lib/main.dart | 21 +++++++++----------- example/pubspec.yaml | 6 +++--- lib/src/sliver_app_bar_builder.dart | 1 + lib/src/sliver_app_bar_builder_delegate.dart | 1 + pubspec.yaml | 2 +- 8 files changed, 23 insertions(+), 21 deletions(-) diff --git a/.github/workflows/storybook.yaml b/.github/workflows/storybook.yaml index 505a70c..4a0a495 100644 --- a/.github/workflows/storybook.yaml +++ b/.github/workflows/storybook.yaml @@ -37,7 +37,7 @@ jobs: - uses: actions/checkout@v4 - name: Configure FVM - uses: kuhnroyal/flutter-fvm-config-action@v1 + uses: kuhnroyal/flutter-fvm-config-action@v2 with: path: 'example/.fvm/fvm_config.json' - name: Install Flutter @@ -50,12 +50,12 @@ jobs: run: flutter build web --base-href "/sliver_app_bar_builder/" - name: Setup Pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: # Upload entire repository path: 'example/build/web/' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4 diff --git a/CHANGELOG.md b/CHANGELOG.md index 73464f5..42c8122 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## Unreleased +- Bump dependencies. + ## 1.1.0 - Adhere to netglade_analysis 4.0.0 - Update Dart SDK constraints diff --git a/example/.fvm/fvm_config.json b/example/.fvm/fvm_config.json index 7d9198e..b35b02a 100644 --- a/example/.fvm/fvm_config.json +++ b/example/.fvm/fvm_config.json @@ -1,4 +1,4 @@ { - "flutterSdkVersion": "3.13.0", + "flutterSdkVersion": "3.16.5", "flavors": {} } \ No newline at end of file diff --git a/example/lib/main.dart b/example/lib/main.dart index 16c0f58..760f9d3 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -4,26 +4,23 @@ import 'package:sliver_app_bar_builder_example/stories/play_with_parameters_stor import 'package:storybook_flutter/storybook_flutter.dart'; void main() { - runApp(StorybookApp()); + runApp(const StorybookApp()); } // ignore: prefer-match-file-name, ok for example class StorybookApp extends StatelessWidget { - // ignore: avoid-stateless-widget-initialized-fields, ok for this - final _plugins = initializePlugins( - knobsSidePanel: true, - contentsSidePanel: true, - initialDeviceFrameData: DeviceFrameData( - device: Devices.ios.iPhone13ProMax, - ), - ); - - StorybookApp({super.key}); + const StorybookApp({super.key}); @override Widget build(BuildContext context) { return Storybook( - plugins: _plugins, + plugins: initializePlugins( + initialDeviceFrameData: ( + device: Devices.ios.iPhone13ProMax, + isFrameVisible: true, + orientation: Orientation.portrait, + ), + ), wrapperBuilder: (context, child) => MaterialApp( navigatorKey: GlobalKey(), theme: ThemeData.light(), diff --git a/example/pubspec.yaml b/example/pubspec.yaml index a7e3232..83d1425 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -6,19 +6,19 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=2.18.5 <4.0.0" + sdk: ^3.0.0 dependencies: flutter: sdk: flutter sliver_app_bar_builder: path: ../ - storybook_flutter: ^0.12.0 + storybook_flutter: ^0.14.0 dev_dependencies: flutter_test: sdk: flutter - netglade_analysis: ^5.0.0 + netglade_analysis: ^6.0.0 flutter: uses-material-design: true diff --git a/lib/src/sliver_app_bar_builder.dart b/lib/src/sliver_app_bar_builder.dart index 51757d1..b6697d2 100644 --- a/lib/src/sliver_app_bar_builder.dart +++ b/lib/src/sliver_app_bar_builder.dart @@ -37,6 +37,7 @@ class SliverAppBarBuilder extends StatelessWidget { final double? initialBarHeight; /// {@macro SliverAppBarBuilderDelegate.contentBuilder} + // ignore: prefer-correct-callback-field-name, public api final ExpandRatioBuilderContentCallback? contentBuilder; /// {@macro SliverAppBarBuilderDelegate.contentHeight} diff --git a/lib/src/sliver_app_bar_builder_delegate.dart b/lib/src/sliver_app_bar_builder_delegate.dart index 741dd07..5eeedac 100644 --- a/lib/src/sliver_app_bar_builder_delegate.dart +++ b/lib/src/sliver_app_bar_builder_delegate.dart @@ -45,6 +45,7 @@ class SliverAppBarBuilderDelegate extends SliverPersistentHeaderDelegate { /// /// [initialContentHeight] must also be defined. /// {@endtemplate} + // ignore: prefer-correct-callback-field-name, public api final ExpandRatioBuilderContentCallback? contentBuilder; /// {@template SliverAppBarBuilderDelegate.contentHeight} diff --git a/pubspec.yaml b/pubspec.yaml index 416e1c7..745c52d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -18,4 +18,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - netglade_analysis: ^5.0.0 + netglade_analysis: ^6.0.0