Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump dependencies #21

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/storybook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Unreleased
- Bump dependencies.

## 1.1.0
- Adhere to netglade_analysis 4.0.0
- Update Dart SDK constraints
Expand Down
2 changes: 1 addition & 1 deletion example/.fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"flutterSdkVersion": "3.13.0",
"flutterSdkVersion": "3.16.5",
"flavors": {}
}
21 changes: 9 additions & 12 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
6 changes: 3 additions & 3 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions lib/src/sliver_app_bar_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
1 change: 1 addition & 0 deletions lib/src/sliver_app_bar_builder_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
netglade_analysis: ^5.0.0
netglade_analysis: ^6.0.0