remote_form 0.0.3
remote_form: ^0.0.3

Flutter Android iOS web

Manage form and UI from backend side as JSON

remote_form #

Flutter widget to manage a form from a JSON definition

Usage #

Add the factory to the RemoteManagerWidget:

RemoteForm(
    obSubmit: (values, {associatedData}){}, 
    onChanges: (key, value, {associatedData}) => debugPrint('$key change to $value'),
    definition: {},
    child: RemoteWidget(...)
)

Then you can provide a JSON representation of a color picker like this:

{
    'type': 'image_button',
    'id': 'myButton',
    'value': 'on',
    'values': {
      'on': 'http://chittagongit.com/download/17966',
      'off': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQRS1i8ftLBJX74FnwordRN5vQ5IgUy9rjkR1R2ODiBjWZThKoEHA',
    }
}

API #

Image button:

id : id of the widget value : current value, it has to match one of the values entries width : width of the button height: height of the button fit: fit, default to contain (1), see BoxFit for more padding: padding of the button, see EdgeInsets definition values: map of possible value

How it works #

Under the hood remote_ui does his magic to transform JSON into widget tree and forward changes to remote_form.

1
likes
80
pub points
10%
popularity

Publisher

mylisabox.com

Manage form and UI from backend side as JSON

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL 3.0 (LICENSE)

Dependencies

flutter, flutter_hooks, remote_ui

More

Packages that depend on remote_form