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