widget_snippet 0.1.1
widget_snippet: ^0.1.1 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.1 #
- Fixed the download zip file function to download just the code file if no widget is provided.
- Fixed issue with the default DisplayMode not being auto-assigned if
WidgetSnippetConfigis provided withoutdisplayMode. - Removed the Widget Preview tab from the
DisplayMode.tabbedmode if no widget is provided. - Fixed
DisplayMode.tabbedbreaking when displayed in the BottomSheet.
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 (
WidgetSnippetwidget)
- 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
WidgetSnippetConfigwithcopyWith()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
