Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

load widget after read data from json file

FutureBuilder(
  future: DefaultAssetBundle.of(context)
      .loadString('assets/loadjson/details.json'),
  builder: (context, snapshot) {
    // Decode the JSON
    var newData = json.decode(snapshot.data.toString());
Source by faun.pub #
 
PREVIOUS NEXT
Tagged: #load #widget #read #data #json #file
ADD COMMENT
Topic
Name
6+8 =