neonime-app/lib/components/initializer.dart
2020-08-18 01:37:58 +07:00

11 lines
No EOL
309 B
Dart

import 'dart:convert';
import 'package:http/http.dart' as http;
final appVersion = '1.0.0';
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;
}