Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
ookami-kb committed Feb 15, 2024
1 parent 68aa37d commit 1541a1e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 159 deletions.
10 changes: 5 additions & 5 deletions packages/storybook_flutter/example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import 'package:flutter/material.dart';
import 'package:storybook_flutter/storybook_flutter.dart';
import 'package:storybook_flutter_example/router_aware_stories.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
Widget build(BuildContext context) => Storybook(
initialStory: 'Screens/Scaffold',
stories: [
...routerAwareStories,
Story(
name: 'Screens/Scaffold',
description: 'Story with scaffold and different knobs.',
Expand Down Expand Up @@ -75,6 +73,7 @@ class MyApp extends StatelessWidget {
description: 'Show FAB button',
)
? FloatingActionButton(
heroTag: 'FAB',
onPressed: () {},
child: const Icon(Icons.add),
)
Expand Down Expand Up @@ -120,10 +119,10 @@ class MyApp extends StatelessWidget {

class CounterPage extends StatefulWidget {
const CounterPage({
Key? key,
super.key,
required this.title,
this.enabled = true,
}) : super(key: key);
});

final String title;
final bool enabled;
Expand Down Expand Up @@ -168,6 +167,7 @@ class _CounterPageState extends State<CounterPage> {
),
floatingActionButton: widget.enabled
? FloatingActionButton(
heroTag: 'FAB',
onPressed: _incrementCounter,
tooltip: 'Increment',
child: const Icon(Icons.add),
Expand Down
74 changes: 0 additions & 74 deletions packages/storybook_flutter/example/lib/router_aware_stories.dart

This file was deleted.

This file was deleted.

5 changes: 1 addition & 4 deletions packages/storybook_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,16 @@ environment:
sdk: ">=3.0.0 <4.0.0"

dependencies:
auto_route: ^5.0.2
flutter:
sdk: flutter
storybook_flutter:
path: ..
universal_html: ^2.0.8

dev_dependencies:
auto_route_generator: ^5.0.2
build_runner: ^2.3.2
flutter_test:
sdk: flutter
mews_pedantic: ^0.11.0
mews_pedantic: ^0.23.0

flutter:
uses-material-design: true
4 changes: 2 additions & 2 deletions packages/storybook_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ dependencies:
recase: ^4.0.0

dev_dependencies:
build_runner: ^2.0.3
build_runner: ^2.4.8
flutter_test:
sdk: flutter
golden_toolkit: ^0.9.0
golden_toolkit: ^0.15.0
mews_pedantic: ^0.23.0
mocktail: ^0.2.0

Expand Down

0 comments on commit 1541a1e

Please sign in to comment.