ZontreckWebsite/lib/Constants.dart

18 lines
572 B
Dart

import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:zontreck/Settings.dart';
class Constants {
static const TITLEBAR_COLOR = Color.fromARGB(255, 97, 0, 0);
static const DRAWER_COLOR = Color.fromARGB(148, 0, 97, 97);
static const SERVICES_JSON =
"https://raw.githubusercontent.com/AriasCreations/AriasCreations/main/services.json";
static Future<Map<String, dynamic>> pullServicesJson() async {
Settings settings = Settings();
var reply = await settings.dio.get(SERVICES_JSON);
return json.decode(reply.data);
}
}