json_designing_flutter 0.0.1 copy "json_designing_flutter: ^0.0.1" to clipboard
json_designing_flutter: ^0.0.1 copied to clipboard

A Flutter package to help convert json code to flutter code

Write json file with widgets use this to convert it to flutter designs

Features #

This package helps convert json file to flutter code [Note: The package is under active development]

Getting started #

Start by adding the package to your pubspec.yaml file

dependencies:
  flutter:
    sdk: flutter
  json_designing_flutter:

Usage #

You should have a Map<String, dynamic> or List<Map<String, dynamic>> object converted from the json string

var data = json.decode(dataString);
dataMap = Map<String, dynamic>.from(data);

or

var data = json.decode(dataString);
dataList = List<Map<String, dynamic>>.from(data);

Wherever you want to use place the widget write this JsonConverter.getWidget(dataMap) or JsonConverter.getWidgetList(dataList)

return Container(
    child: JsonConverter.getWidget(dataMap),
);

or

return Column(
    children: JsonConverter.getWidgetList(dataList),
);

Additional information #

The github link is https://github.com/simranss/json_designing_flutter_package You can go on contribute to the project on this github repository

0
likes
140
pub points
0%
popularity

Publisher

unverified uploader

A Flutter package to help convert json code to flutter code

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on json_designing_flutter