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,6 +1,6 @@
import 'package:get/get.dart';
import 'package:hgmj/hj_model/mine/official_list_item_model.dart';
import 'package:hgmj/hj_utils/api_service/mine_service.dart';
import 'package:wydj/hj_model/mine/official_list_item_model.dart';
import 'package:wydj/hj_utils/api_service/mine_service.dart';
class MineDriveLogic extends GetxController {
/// null 表示未加载(loading 态),非 null 表示已加载(可能为空)
@@ -1,8 +1,8 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:hgmj/assets_tool/app_colors.dart';
import 'package:hgmj/hj_utils/screen.dart';
import 'package:hgmj/hj_utils/text_util.dart';
import 'package:wydj/assets_tool/app_colors.dart';
import 'package:wydj/hj_utils/screen.dart';
import 'package:wydj/hj_utils/text_util.dart';
import '../../../hj_model/mine/official_list_item_model.dart';
import '../../../routers/jump_router.dart';
@@ -13,8 +13,10 @@ import 'mine_drive_logic.dart';
class MineDrivePage extends StatelessWidget {
const MineDrivePage({super.key});
static const _titleStyle = TextStyle(color: Colors.white, fontSize: 18, fontWeight: FontWeight.w600);
static const _subtitleStyle = TextStyle(color: Color(0x80FFFFFF), fontSize: 12);
static const _titleStyle =
TextStyle(color: Colors.white, fontSize: 18, fontWeight: FontWeight.w600);
static const _subtitleStyle =
TextStyle(color: Color(0x80FFFFFF), fontSize: 12);
@override
Widget build(BuildContext context) {
@@ -32,9 +34,15 @@ class MineDrivePage extends StatelessWidget {
child: CustomScrollView(
slivers: [
if (controller.groupList.isNotEmpty)
_buildSection(title: '官方社群', subtitle: '一起看片一起分享心得', list: controller.groupList),
_buildSection(
title: '官方社群',
subtitle: '一起看片一起分享心得',
list: controller.groupList),
if (controller.officialList.isNotEmpty)
_buildSection(title: '商务合作', subtitle: '代理合作/商务合作', list: controller.officialList),
_buildSection(
title: '商务合作',
subtitle: '代理合作/商务合作',
list: controller.officialList),
],
),
);
@@ -82,7 +90,8 @@ class MineDrivePage extends StatelessWidget {
alignment: Alignment.center,
child: Row(
children: [
NetworkImageLoader(imageUrl: item.officialImg ?? '', width: 40, height: 40),
NetworkImageLoader(
imageUrl: item.officialImg ?? '', width: 40, height: 40),
12.sizeBoxW,
Expanded(
child: Column(
@@ -91,13 +100,15 @@ class MineDrivePage extends StatelessWidget {
children: [
Text(
item.officialName ?? '',
style: const TextStyle(color: Colors.white, fontSize: 14, height: 1.1),
style: const TextStyle(
color: Colors.white, fontSize: 14, height: 1.1),
),
if (TextUtil.isNotEmpty(item.officialDesc)) ...[
6.sizeBoxH,
Text(
item.officialDesc ?? '',
style: const TextStyle(color: Color(0xff525252), fontSize: 12, height: 1.1),
style: const TextStyle(
color: Color(0xff525252), fontSize: 12, height: 1.1),
),
],
],
@@ -113,7 +124,10 @@ class MineDrivePage extends StatelessWidget {
),
child: const Text(
'立即加入',
style: TextStyle(color: Colors.black, fontSize: 12, fontWeight: FontWeight.w500),
style: TextStyle(
color: Colors.black,
fontSize: 12,
fontWeight: FontWeight.w500),
),
),
],