neonime-app/lib/components/initializer.dart
2020-08-11 19:01:26 +07:00

11 lines
No EOL
277 B
Dart

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;
}