logo和名称替换

This commit is contained in:
谢宇宁
2026-10-14 11:23:36 +07:00
parent 1cb514cd02
commit c5c04a7967
478 changed files with 8990 additions and 4948 deletions
@@ -1,15 +1,16 @@
import 'package:flutter/material.dart';
import 'package:hgmj/config/config.dart';
import 'package:hgmj/hj_model/home/update_marker_model.dart';
import 'package:hgmj/hj_utils/api_service/common_service.dart';
import 'package:hgmj/hj_utils/light_model.dart';
import 'package:hgmj/hj_utils/store_keys.dart';
import 'package:hgmj/tools_base/debug_log.dart';
import 'package:hgmj/tools_base/global_store/store.dart';
import 'package:wydj/config/config.dart';
import 'package:wydj/hj_model/home/update_marker_model.dart';
import 'package:wydj/hj_utils/api_service/common_service.dart';
import 'package:wydj/hj_utils/light_model.dart';
import 'package:wydj/hj_utils/store_keys.dart';
import 'package:wydj/tools_base/debug_log.dart';
import 'package:wydj/tools_base/global_store/store.dart';
/// 首页「最新 / 今日最新」等内容更新红点
class HomeUpdateMarkerProvider with ChangeNotifier {
static final HomeUpdateMarkerProvider _instance = HomeUpdateMarkerProvider._();
static final HomeUpdateMarkerProvider _instance =
HomeUpdateMarkerProvider._();
HomeUpdateMarkerProvider._();
factory HomeUpdateMarkerProvider() => _instance;
@@ -18,9 +19,11 @@ class HomeUpdateMarkerProvider with ChangeNotifier {
String? _lastViewTodayLatestAt;
final Map<String, String> _lastViewModuleAt = {};
bool get showHomeLatestDot => _isNewer(_markers?.homeLatestAt, _lastViewHomeLatestAt);
bool get showHomeLatestDot =>
_isNewer(_markers?.homeLatestAt, _lastViewHomeLatestAt);
bool get showTodayLatestDot => _isNewer(_markers?.todayLatestAt, _lastViewTodayLatestAt);
bool get showTodayLatestDot =>
_isNewer(_markers?.todayLatestAt, _lastViewTodayLatestAt);
bool showModuleDot(String? moduleId) {
if (moduleId == null || moduleId.isEmpty) return false;
@@ -101,8 +104,10 @@ class HomeUpdateMarkerProvider with ChangeNotifier {
}
Future<void> _loadLocalLastViewed() async {
_lastViewHomeLatestAt = await lightKV.getString(StoreKeys.HOME_LATEST_LAST_VIEW_AT);
_lastViewTodayLatestAt = await lightKV.getString(StoreKeys.HOME_TODAY_LATEST_LAST_VIEW_AT);
_lastViewHomeLatestAt =
await lightKV.getString(StoreKeys.HOME_LATEST_LAST_VIEW_AT);
_lastViewTodayLatestAt =
await lightKV.getString(StoreKeys.HOME_TODAY_LATEST_LAST_VIEW_AT);
_lastViewModuleAt.clear();
for (final m in _markers?.modules ?? const <HomeModuleUpdateMarker>[]) {
final id = m.moduleId;