add disk page
This commit is contained in:
1 parent
5c34b9901e
commit
b77b34442b
8 files changed
+146
-55
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
|
||||
Future<Map<String, dynamic>> getJson(String uri) async {
|
||||
if (!kIsWeb) {
|
||||
uri = "http://127.0.0.1:8000$uri";
|
||||
}
|
||||
final resp = await http.get(Uri.parse(uri));
|
||||
return jsonDecode(resp.body);
|
||||
}
|
||||
Reference in new issue
Block a user