This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Call the method e.g. from initState like this: FetchListOfJsonsApi().getDecodedBody(); | |
// | |
// Install the http plugin here: https://pub.dev/packages/http | |
import 'package:http/http.dart' as http; | |
import 'dart:convert'; | |
class FetchListOfJsonsApi { | |
final String url; | |
FetchListOfJsonsApi({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'dart:io'; | |
import 'package:path_provider/path_provider.dart'; | |
import 'dart:convert'; | |
const String kFileName = 'myJsonFile.json'; | |
const InputDecoration kInputDecoration = InputDecoration( | |
border: OutlineInputBorder(), | |
labelText: 'Label Text', | |
); |
NewerOlder