widget_snippet 0.1.1 copy "widget_snippet: ^0.1.1" to clipboard
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 WidgetSnippetConfig is provided without displayMode.
  • Removed the Widget Preview tab from the DisplayMode.tabbed mode if no widget is provided.
  • Fixed DisplayMode.tabbed breaking 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 (WidgetSnippet widget)
  • Added display modes:
    • Row layout (DisplayMode.row)
    • Column layout (DisplayMode.column)
    • Tabbed layout (DisplayMode.tabbed)
  • 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 with copyWith() method
    • Responsive design with automatic mode selection based on available space
  • Added conditional imports for web/non-web platform compatibility
  • Documentation examples with region markers for documentation generation tools
2
likes
160
points
70
downloads
screenshot

Publisher

verified publisherintuosol.com

Weekly Downloads

A Flutter package for showcasing widget code snippets. Display, copy, and download widget previews with their source code in various presentation formats.

Repository (GitHub)
View/report issues

Topics

#ui #documentation #code-snippet #showcase

Documentation

API reference

License

MIT (license)

Dependencies

archive, code_text_field, flutter, flutter_highlight, highlight, path_provider, screenshot, url_launcher, web

More

Packages that depend on widget_snippet