You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import 'package:package_info_plus/package_info_plus.dart';
|
|
|
|
import 'package:shared_preferences/shared_preferences.dart';
|
|
|
|
|
|
|
|
typedef VoidFutureCallback = Future<void> Function();
|
|
|
|
typedef BoolFutureCallback = Future<bool> Function();
|
|
|
|
|
|
|
|
class Global {
|
|
|
|
static const String wikiApiUrl = "https://www.isekai.cn/api.php";
|
|
|
|
|
|
|
|
static String wikiHomeUrl = "https://www.isekai.cn/";
|
|
|
|
|
|
|
|
static String restfulApiUrl = "https://www.isekai.cn/api/rest_v1";
|
|
|
|
|
|
|
|
static String pageUrl = "https://www.isekai.cn/index.php?title={{title}}";
|
|
|
|
|
|
|
|
static const String renderThemeFallback = "vector";
|
|
|
|
|
|
|
|
static PackageInfo? packageInfo;
|
|
|
|
|
|
|
|
static String wikiLang = "zh-cn";
|
|
|
|
|
|
|
|
static String? webOrigin;
|
|
|
|
|
|
|
|
static SharedPreferences? sharedPreferences;
|
|
|
|
}
|