neonime-app/lib/components/initializer.dart
2020-12-02 10:31:57 +07:00

11 lines
No EOL
309 B
Dart

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