neonime-app/lib/components/initializer.dart

11 lines
309 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 {
2020-08-17 20:37:58 +02:00
final urlConfig = 'https://gitlab.com/moepoi/neonime-app/-/raw/master/info.json';
2020-08-11 14:01:26 +02:00
final response = await http.get(urlConfig);
var res = json.decode(response.body);
return res;
}