neonime-app/lib/components/initializer.dart

11 lines
277 B
Dart
Raw Normal View History

2020-08-11 14:01:26 +02:00
import 'dart:convert';
import 'package:http/http.dart' as http;
final appVersion = '1.0.0';
dynamic initializer() async {
final urlConfig = 'https://moepoi.dev/test.json';
final response = await http.get(urlConfig);
var res = json.decode(response.body);
return res;
}