fluttercanvas_core 0.3.1
fluttercanvas_core: ^0.3.1 copied to clipboard
Design model, JSON format and responsive Flutter code generator behind FlutterCanvas, the open-source drag-and-drop Flutter UI builder.
0.3.1 #
- Complete README with features, examples and the CLI.
0.3.0 #
- Any widget can open a screen or run an action when tapped (
navigateTo,action), and play an entrance animation (animation,animationMs). - Icons can show a
badge. Screens have editable app bars and a shared bottom navigation bar (CanvasDocument.bars,BarKeys). customCodewidgets use any pub.dev package; the export adds their imports and apubspec_dependencies.yaml.- Added
CanvasTemplates(starter, blank, animated e-commerce),DesignPromptfor AI assistants, and thefluttercanvas exportcommand. - Auto layout for boxes: a box can lay its children out freely, in a row or in a column, with a gap, arrangement and alignment, like Figma's auto layout.
- Children of a free box can fill the whole box, which makes round avatars easy.
- Widgets keep the exact width you give them, even inside columns that stretch their children, on the canvas and in exported code.
- Added the
boxwidget: a drawable shape with fill, corner radius, inner spacing, border and shadow, whose children sit at exact positions. Boxes can hold boxes. - Added
CanvasDocument.freeForm()for screens that are one free canvas, andWidgetCatalog.isFreeLayout. - Added the
freeCanvaswidget: a Figma-like frame where children sit at exactx/ypositions. It keeps its design size and shrinks to fit small screens. - Every widget now supports
width,heightandmargin. - Added
FlutterCodeGenerator.generateWidgetto export the code for a single widget. WidgetCatalog.layoutProps,positionPropsandfreeCanvasWidthdescribe the new properties.
0.2.0 #
- Added
CanvasProjectfor apps with several screens. Version 0.1 JSON still loads. - Buttons can link to another screen or go back with the
navigateToproperty. - Added
FlutterCodeGenerator.generateProject, which writesmain.dart,app_routes.dart, one file per screen and shared responsive widgets. - Named layers are exported as their own
StatelessWidgetclasses. - Generated code adds
constwhere possible, skips default values, and marks where your logic goes with// TODOcomments. - Screens now have an
id, and the default screen name isHome.
0.1.0 #
- Initial release: widget model, JSON format, 13 widget types and a responsive Flutter code generator.