neonime-app/lib/components/initializer.dart
2020-08-29 23:19:36 +07:00

11 lines
No EOL
309 B
Dart

import 'dart:convert';
import 'package:http/http.dart' as http;
final appVersion = '1.0.2';
dynamic initializer() async {
final urlConfig = 'https://gitlab.com/moepoi/neonime-app/-/raw/master/info.json';
final response = await http.get(urlConfig);
var res = json.decode(response.body);
return res;
}