2024-04-30 23:38:49 +08:00
|
|
|
import 'dart:ui';
|
|
|
|
|
|
2024-07-08 17:34:14 +08:00
|
|
|
import 'package:fl_clash/models/clash_config.dart';
|
2024-04-30 23:38:49 +08:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
2024-05-11 17:02:34 +08:00
|
|
|
const appName = "FlClash";
|
2024-05-20 15:15:09 +08:00
|
|
|
const coreName = "clash.meta";
|
|
|
|
|
const packageName = "FlClash";
|
|
|
|
|
const httpTimeoutDuration = Duration(milliseconds: 5000);
|
|
|
|
|
const moreDuration = Duration(milliseconds: 100);
|
2024-06-23 00:26:24 +08:00
|
|
|
const animateDuration = Duration(milliseconds: 100);
|
2024-05-20 15:15:09 +08:00
|
|
|
const defaultUpdateDuration = Duration(days: 1);
|
|
|
|
|
const mmdbFileName = "geoip.metadb";
|
2024-06-03 18:02:05 +08:00
|
|
|
const asnFileName = "ASN.mmdb";
|
2024-07-08 17:34:14 +08:00
|
|
|
const geoIpFileName = "GeoIP.dat";
|
|
|
|
|
const geoSiteFileName = "GeoSite.dat";
|
|
|
|
|
const GeoXMap defaultGeoXMap = {
|
|
|
|
|
"mmdb":"https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.metadb",
|
|
|
|
|
"asn":"https://github.com/xishang0128/geoip/releases/download/latest/GeoLite2-ASN.mmdb",
|
|
|
|
|
"geoip":"https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/GeoIP.dat",
|
|
|
|
|
"geosite":"https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat"
|
|
|
|
|
};
|
2024-05-20 15:15:09 +08:00
|
|
|
const profilesDirectoryName = "profiles";
|
|
|
|
|
const localhost = "127.0.0.1";
|
|
|
|
|
const clashConfigKey = "clash_config";
|
|
|
|
|
const configKey = "config";
|
|
|
|
|
const listItemPadding = EdgeInsets.symmetric(horizontal: 16);
|
|
|
|
|
const double dialogCommonWidth = 300;
|
|
|
|
|
const repository = "chen08209/FlClash";
|
2024-06-11 20:50:57 +08:00
|
|
|
const defaultExternalController = "127.0.0.1:9090";
|
2024-05-20 15:15:09 +08:00
|
|
|
const maxMobileWidth = 600;
|
|
|
|
|
const maxLaptopWidth = 840;
|
2024-06-12 19:28:58 +08:00
|
|
|
const geodataLoaderMemconservative = "memconservative";
|
|
|
|
|
const geodataLoaderStandard = "standard";
|
2024-07-02 08:08:31 +08:00
|
|
|
const defaultTestUrl = "https://www.gstatic.com/generate_204";
|
2024-05-20 15:15:09 +08:00
|
|
|
final filter = ImageFilter.blur(
|
|
|
|
|
sigmaX: 5,
|
|
|
|
|
sigmaY: 5,
|
|
|
|
|
tileMode: TileMode.mirror,
|
|
|
|
|
);
|
2024-05-11 17:02:34 +08:00
|
|
|
|
2024-05-20 15:15:09 +08:00
|
|
|
const defaultPrimaryColor = Colors.brown;
|