GithubHelp home page GithubHelp logo

simranss / json_designing_flutter_package Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 9.94 MB

License: MIT License

Kotlin 0.24% Swift 2.20% Objective-C 0.07% Dart 15.82% CMake 35.44% C++ 40.04% C 2.70% HTML 3.49%

json_designing_flutter_package's Introduction

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

json_designing_flutter_package's People

Contributors

simranss avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.