Generate a new slide for the slide deck. Built for the flutter_deck package.
Usage š
mason make flutter_deck_slide --name new --template blank
Variables āØ
Variable | Description | Default | Type |
---|---|---|---|
name | The name of the slide class | new | string |
template | The template of the slide | blank (big-fact, blank, custom, image, quote, split, template, title) | enum |
Output š¦
Generated files
āāā new_slide.dart
Generated code
class NewSlide extends FlutterDeckSlideWidget {
const NewSlide()
: super(
configuration: const FlutterDeckSlideConfiguration(
route: '/new',
),
);
@override
Widget build(BuildContext context) {
return FlutterDeckSlide.blank(
builder: (context) => const Placeholder(),
);
}
}