mkobuolys/flutter_deck/flutter-deck-presentation-setup
Claude Code and agent skill by mkobuolys/flutter_deck
- community
- ext:[{"type":"template","description":"Custom templates for code generation"}]
Checking that the SKILL.md file is still in the repository.
Scaffold a new flutter_deck presentation from an empty Flutter project — wiring up FlutterDeckApp with slides, light/dark themes, speaker info, plugins, the web client for presenter view, and localization — and laying out a scalable lib/slides/ + barrel-file architecture with optional plugins/, shortcuts/, templates/, l10n/, theme.dart, widgets/, and embedded packages/ directories. Use this skill when starting a new presentation, converting the default Flutter counter app into a deck, restructuring an ad-hoc presentation, or wiring up the entry point in main.dart — even when the user only says "set up flutter_deck", "build a slide deck app", or "make a Flutter presentation" without naming the architecture.
Install
npx vskill@latest install mkobuolys/flutter_deck/flutter-deck-presentation-setupSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as mkobuolys/flutter_deck/flutter-deck-presentation-setup.
Creating a New Presentation with Flutter Deck
Overview
This skill covers the standard architecture and implementation steps to transform an empty Flutter project into a scalable flutter_deck presentation. Based on official examples and complex real-world talks, the community-standard architecture separates the entry point (main.dart), the unified theme data (theme.dart), and individual slide definitions. For large presentations, slides are grouped into logical sub-folders within the slides directory, and their groupings are exported via barrel files. This pattern prevents main.dart from bloating when your presentation grows past 20 slides.
When to Use This Skill
- When starting a brand new presentation.
- When scaffolding the default flutter counter app into a presentation workspace.
- When restructuring an ad-hoc presentation into the officially recommended architecture.
Implementation Checklist
- [ ] Create a new Flutter project (
flutter create my_presentation). - [ ] Add
flutter_deckdependency (flutter pub add flutter_deck). - [ ] Create the
lib/slides/directory and a rootlib/slides/slides.dartbarrel file. - [ ] Group related slides into sub-folders (e.g.,
lib/slides/intro/), exportingconst introSlides = [...]from a section barrel (intro/intro.dart). - [ ] Clear
lib/main.dartand initializeFlutterDeckAppwithslides:,lightTheme:,darkTheme:, andspeakerInfo:. Define themes inline at first; extract tolib/theme.dartonly when they grow. - [ ] (Optional) Add
client: FlutterDeckWebClient()for presenter view on web,plugins:for autoplay/exports, andlocalizationsDelegates/supportedLocalesfor localized decks.
Architecture & File Structure
A maintainable presentation project structures its files systematically. The example app at packages/flutter_deck/example/ is the canonical reference — its layout is reproduced below. Directories marked (optional) only matter once the deck reaches that complexity.
Organizing Auxiliary Components
- Slides (required): Each slide in its own file under
lib/slides/, re-exported through theslides.dartbarrel. For larger decks, group slides into sub-folders with their own section barrel that exposes aconst xxxSlides = [...]array. - Plugins: Custom
FlutterDeckPluginimplementations go inlib/plugins/. - Shortcuts: Custom
FlutterDeckShortcutsubclasses inlib/shortcuts/. Wire them up viaFlutterDeckShortcutsConfiguration(customShortcuts: [...])inmain.dart. - Template Overrides: Custom builders for
FlutterDeckTemplateOverrideConfiguration(titleSlideBuilder,splitSlideBuilder, etc.) inlib/templates/. - Localization: When the deck supports multiple languages, put generated localization code in
lib/l10n/and passAppLocalizations.localizationsDelegatesandAppLocalizations.supportedLocalestoFlutterDeckApp. - Theme: For small decks, define
lightTheme/darkThemeinline inmain.dart(see Step 1). Extract tolib/theme.dartonce the theme grows beyond a few lines. - Embedded Live Demos: When demonstrating a fully functional Flutter app inside a slide, isolate it as a local
packages/<app_name>workspace package and import it as a path dependency inpubspec.yaml. Putting demo apps insidelib/pollutes the deck's analyzer and pub graph.
Step 1: Defining the Theme
Build lightTheme and darkTheme with FlutterDeckThemeData.fromTheme(ThemeData(...)). The canonical example app (packages/flutter_deck/example/lib/main.dart) defines them inline — that's the simplest default:
Once the theme grows past ~10 lines (custom typography, multiple seed colors, brand-specific tweaks), extract it into lib/theme.dart:
Step 2: Creating and Grouping Slides
Inside the lib/slides/ directory, create your slides. Each slide should be its own file and class, extending FlutterDeckSlideWidget.
lib/slides/title_slide.dart:
For logical sections of your talk, place them in a folder and create a specific barrel defining an array.
lib/slides/intro/intro.dart:
Finally, export everything in the root lib/slides/slides.dart.
lib/slides/slides.dart:
Step 3: Configuring the Deck (main.dart)
Configure FlutterDeckApp and pass the grouped arrays from slides.dart using the spread operator. FlutterDeckApp.slides is typed List<Widget> — you can mix FlutterDeckSlideWidget subclasses, FlutterDeckSlide.<factory>(configuration: ...) constructors used inline, and any widget tagged with Widget.withSlideConfiguration(...) in the same list.
Optional FlutterDeckApp Parameters
The full constructor exposes more knobs the example deck uses — none are required, but skip them and you may miss a feature you wanted:
| Parameter | Purpose | |
|---|---|---|
client | The FlutterDeckClient for presenter view. Use FlutterDeckWebClient() from package:flutter_deck_web_client when targeting web. | |
themeMode | ThemeMode.system (default), light, or dark. Decides which of lightTheme/darkTheme is active. | |
locale / localizationsDelegates / supportedLocales | Forwarded to the underlying MaterialApp. Use when the deck supports multiple languages — pair with AppLocalizations generated under lib/l10n/. | |
plugins | List<FlutterDeckPlugin>. Drop in FlutterDeckAutoplayPlugin(), FlutterDeckPdfExportPlugin() (from flutter_deck_pdf_export), FlutterDeckPptxExportPlugin() (from flutter_deck_pptx_export), or your own. | |
navigatorObservers | Forwarded to the underlying router. Useful for analytics. | |
isPresenterView | On non-web platforms, force the app to launch as the presenter view instead of the audience view. Requires client. |
Inside FlutterDeckConfiguration, templateOverrides: FlutterDeckTemplateOverrideConfiguration(...) lets you replace built-in slide templates deck-wide (see the flutter-deck-configuration skill).
By following this architecture, you easily scale your presentation regardless of how many slides or custom widgets it contains!
Gotchas
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/flutter-deck-presentation-setup/SKILL.md
Popularity
- Repository stars
- 212
- Repository forks
- 38
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 May 2026, 6 months ago.
Extension points
templateCustom templates for code generation
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mkobuolys/flutter_deck/flutter-deck-presentation-setup)