api修改和更新检查器修改
modrinth_api.dart:拦截器改为只替换 options.baseUrl,path 保持相对 /v2/search、query 留在 queryParameters,避免"整串写回 path"导致的 host 缺失 + query 重复拼接。mirror_service.dart:新增 apiBase getter,返回当前镜像的 API base(official→api.modrinth.com、mcim→modrinth-api.mcimirror.top、custom→自定义 base) Signed-off-by: driftinblock <3480428251@qq.com>
This commit is contained in:
35 files changed
+4171
-1325
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../core/l10n/strings.dart';
|
||||
import '../widgets/z_widgets.dart';
|
||||
|
||||
/// 统一的「需要先选服务器 / 未配置」引导空状态页。
|
||||
/// 自带 AppBar 标题栏,避免页面看起来空白、引导文字无处安放。
|
||||
@@ -24,7 +25,7 @@ class EmptyStatePage extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: T(title)),
|
||||
appBar: ZAppBar(title: T(title)),
|
||||
body: Center(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(32),
|
||||
|
||||
Reference in new issue
Block a user