Skip to main content

fluttercanvas_renderer 0.3.1 copy "fluttercanvas_renderer: ^0.3.1" to clipboard
fluttercanvas_renderer: ^0.3.1 copied to clipboard

Render FlutterCanvas JSON designs as real, responsive Flutter widgets at runtime. Server-driven UI for Android, iOS, web and desktop.

fluttercanvas_renderer #

pub package CI License: MIT

Render FlutterCanvas designs as real, responsive Flutter widgets at runtime, on Android, iOS, web, macOS, Windows and Linux.

Because designs are JSON, you can serve them from your backend and change screens without an app store release (server-driven UI).

A rendered e-commerce design

Features #

  • CanvasProjectView runs a whole multi-screen design with real navigation, app bars and a bottom navigation bar.
  • CanvasView renders one screen, with or without a Scaffold.
  • Button and tap actions come back to your code by id.
  • Entrance animations, icon badges, boxes with auto layout, free-form layouts and responsive grids.
  • Reusable widgets: AdaptiveRow, ResponsiveGrid, FreeCanvas and EntranceAnimation.

Install #

dependencies:
  fluttercanvas_renderer: ^0.3.0

Run a whole app design #

import 'package:fluttercanvas_renderer/fluttercanvas_renderer.dart';

MaterialApp(
  home: CanvasProjectView(
    project: CanvasProject.fromJsonString(jsonFromServer),
    onAction: (action, node) {
      if (action == 'checkout') startCheckout();
    },
  ),
);

Render one screen #

CanvasView.fromJson(
  screenJson,
  delegate: CanvasRenderDelegate(
    onAction: (action, node) => handle(action),
  ),
);

Set includeScaffold: false to place a design inside one of your own screens.

Responsive widgets for your own code #

ResponsiveGrid(
  mobileColumns: 1,
  tabletColumns: 2,
  desktopColumns: 4,
  children: products.map(ProductCard.new).toList(),
);

License #

MIT

0
likes
150
points
686
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Render FlutterCanvas JSON designs as real, responsive Flutter widgets at runtime. Server-driven UI for Android, iOS, web and desktop.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#ui #server-driven-ui #responsive #json

License

MIT (license)

Dependencies

flutter, fluttercanvas_core

More

Packages that depend on fluttercanvas_renderer