widget_snippet 0.1.0
widget_snippet: ^0.1.0 copied to clipboard
A Flutter package for showcasing widget code snippets. Display, copy, and download widget previews with their source code in various presentation formats.
0.1.0 #
- First public release of the Widget Snippet package
- Added multiple display methods:
- Bottom sheet display (
WidgetSnippet.showBottomSheet
) - Full-screen display (
WidgetSnippet.showFullScreen
) - Popup dialog display (
WidgetSnippet.showPopup
) - Smart modal display (
WidgetSnippet.showModal
) - automatically chooses between popup and bottom sheet - Inline display (
WidgetSnippet
widget)
- Bottom sheet display (
- Added display modes:
- Row layout (
DisplayMode.row
) - Column layout (
DisplayMode.column
) - Tabbed layout (
DisplayMode.tabbed
)
- Row layout (
- Terminal-style code display:
- Custom window title
- Brightness themes (dark/light)
- Syntax highlighting
- Export and sharing capabilities:
- Download widgets as images
- Copy code snippets with feedback
- Export both as a zip file
- Status messages for operation feedback
- Configuration options:
- Comprehensive
WidgetSnippetConfig
withcopyWith()
method - Responsive design with automatic mode selection based on available space
- Comprehensive
- Added conditional imports for web/non-web platform compatibility
- Documentation examples with region markers for documentation generation tools