Skip to content

Commit

Permalink
feat: [MDS-1093] Add pages functionality (#397)
Browse files Browse the repository at this point in the history
Co-authored-by: Birgitt Majas <birgitt.majas@yolo.com>
  • Loading branch information
GittHub-d and Birgitt Majas committed Apr 25, 2024
1 parent b8d9876 commit 78eccf9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/lib/src/storybook/common/widgets/version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class _MoonVersionWidgetState extends State<MoonVersionWidget> {

final PackageInfo packageInfo = await PackageInfo.fromPlatform();

setState(() => _version = packageInfo.version);
if (mounted) setState(() => _version = packageInfo.version);
}

@override
Expand Down
2 changes: 1 addition & 1 deletion example/lib/src/storybook/storybook.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class StorybookPage extends StatelessWidget {
enableCompactLayoutDeviceFrame: false,
initialDeviceFrameData: (
isFrameVisible: true,
device: Devices.ios.iPhone13,
device: Devices.ios.iPhone12ProMax,
orientation: Orientation.portrait,
),
);
Expand Down
6 changes: 5 additions & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ publish_to: none
version: 0.53.0
environment:
sdk: '>=3.3.1 <4.0.0'

dependencies:
cupertino_icons: ^1.0.2
flutter:
Expand All @@ -18,14 +19,16 @@ dependencies:
storybook_flutter:
git:
url: https://github.com/coingaming/storybook_flutter.git
ref: 6f2e9e7ebfcabc043ee43ae33129258790f8d87f
ref: 89079005d75fbcdfab9931b1cb26dfce155d98d1
path: packages/storybook_flutter
transparent_image: ^2.0.1

dev_dependencies:
flutter_lints: ^2.0.0
flutter_test:
sdk: flutter
lint: ^2.1.2

dependency_overrides:
device_frame:
git:
Expand All @@ -35,6 +38,7 @@ dependency_overrides:
git:
url: https://github.com/bradrushworth/flutter_device_preview.git
path: device_preview

flutter:
uses-material-design: true
fonts:
Expand Down

0 comments on commit 78eccf9

Please sign in to comment.