storybook_flutter 0.0.4 copy "storybook_flutter: ^0.0.4" to clipboard
storybook_flutter: ^0.0.4 copied to clipboard

outdated

A storybook for Flutter widgets. Live preview of isolated widgets for faster development and showcase.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:storybook_flutter/storybook_flutter.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) => Storybook(
        children: [
          Story(
            name: 'Flat button',
            child: MaterialButton(child: Text('Flat button'), onPressed: () {}),
          ),
          Story(
            name: 'Raised button',
            child: RaisedButton(child: Text('Raised button'), onPressed: () {}),
          ),
          Story(
            name: 'Input field',
            child: TextField(
              decoration: InputDecoration(
                border: OutlineInputBorder(),
                labelText: 'Input field',
              ),
            ),
          ),
        ],
      );
}
290
likes
0
pub points
95%
popularity

Publisher

verified publisherookamikb.dev

A storybook for Flutter widgets. Live preview of isolated widgets for faster development and showcase.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, recase, rxdart

More

Packages that depend on storybook_flutter