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,8 +1,8 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:hgmj/assets_tool/images.dart';
import 'package:hgmj/config/config.dart';
import 'package:hgmj/hj_utils/screen.dart';
import 'package:wydj/assets_tool/images.dart';
import 'package:wydj/config/config.dart';
import 'package:wydj/hj_utils/screen.dart';
import '../../../../tools_base/widget/marquee_widget.dart';
import '../../../../tools_base/widget/net_image_widget.dart';
@@ -69,7 +69,7 @@ class _CommonSearchBarViewState extends State<CommonSearchBarView> {
child: Image.asset('nav_logo.webp'.homePath, width: 28, height: 28),
),
6.sizeBoxW,
const Text('黄果漫剧', style: _titleStyle),
const Text('51短剧', style: _titleStyle),
],
);
}
@@ -89,18 +89,22 @@ class _CommonSearchBarViewState extends State<CommonSearchBarView> {
),
child: Row(
children: [
Image.asset('search_icon.png'.commonImgPath, width: 18, height: 18, color: Colors.white),
Image.asset('search_icon.png'.commonImgPath,
width: 18, height: 18, color: Colors.white),
8.sizeBoxW,
Expanded(
child: Config.searchHints.isEmpty
? Text('请输入关键字', style: _hintStyle)
: MarqueeWidget(
count: Config.searchHints.length,
onIndexChanged: (index) => _searchText = Config.searchHints[index],
onIndexChanged: (index) =>
_searchText = Config.searchHints[index],
itemBuilder: (_, index) => Container(
alignment: Alignment.centerLeft,
child: Text(Config.searchHints[index],
style: _hintStyle, maxLines: 1, overflow: TextOverflow.ellipsis),
style: _hintStyle,
maxLines: 1,
overflow: TextOverflow.ellipsis),
),
),
),
@@ -1,8 +1,8 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:hgmj/assets_tool/images.dart';
import 'package:hgmj/hj_utils/screen.dart';
import 'package:hgmj/tools_base/toast.dart';
import 'package:wydj/assets_tool/images.dart';
import 'package:wydj/hj_utils/screen.dart';
import 'package:wydj/tools_base/toast.dart';
import '../video_all_type_page.dart';
@@ -76,7 +76,9 @@ class _SearchAppBarState extends State<SearchAppBar> {
height: 32,
padding: EdgeInsets.symmetric(horizontal: 10),
alignment: Alignment.centerLeft,
decoration: BoxDecoration(color: Color(0x11FFFFFF), borderRadius: BorderRadius.circular(20)),
decoration: BoxDecoration(
color: Color(0x11FFFFFF),
borderRadius: BorderRadius.circular(20)),
child: Row(
children: [
InkWell(
@@ -87,7 +89,8 @@ class _SearchAppBarState extends State<SearchAppBar> {
child: Row(
children: [
2.sizeBoxW,
Image.asset('libary_search.webp'.homePath, width: 20, color: Color(0xFFFFC000)),
Image.asset('libary_search.webp'.homePath,
width: 20, color: Color(0xFFFFC000)),
6.sizeBoxW,
Text(
'片库',
@@ -109,7 +112,10 @@ class _SearchAppBarState extends State<SearchAppBar> {
Expanded(
child: TextField(
controller: searchTextCtr,
style: TextStyle(color: Colors.white.withValues(alpha: .8), fontSize: 14, height: 1),
style: TextStyle(
color: Colors.white.withValues(alpha: .8),
fontSize: 14,
height: 1),
onSubmitted: (value) => widget.onSubmitted(value),
onChanged: (value) {
if (value.isNotEmpty == true) {
@@ -125,7 +131,10 @@ class _SearchAppBarState extends State<SearchAppBar> {
textInputAction: TextInputAction.search,
decoration: InputDecoration(
hintText: '搜索关键词',
hintStyle: TextStyle(color: Colors.white.withValues(alpha: .55), fontSize: 14, height: 1),
hintStyle: TextStyle(
color: Colors.white.withValues(alpha: .55),
fontSize: 14,
height: 1),
border: InputBorder.none,
isDense: true,
contentPadding: EdgeInsets.zero,
@@ -142,7 +151,8 @@ class _SearchAppBarState extends State<SearchAppBar> {
showDeleteIcon = false;
});
},
child: Image.asset('search_close.webp'.homePath, width: 18),
child: Image.asset('search_close.webp'.homePath,
width: 18),
),
)
],
@@ -1,8 +1,8 @@
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:hgmj/assets_tool/images.dart';
import 'package:hgmj/hj_utils/screen.dart';
import 'package:wydj/assets_tool/images.dart';
import 'package:wydj/hj_utils/screen.dart';
/// 搜索历史区:纯展示,数据与增删由 SearchMainLogic 持有
class SearchHistoryView extends StatefulWidget {
@@ -57,7 +57,8 @@ class _SearchHistoryViewState extends State<SearchHistoryView> {
onTap: widget.onClearAll,
child: Container(
padding: const EdgeInsets.all(1),
child: Image.asset("history_delete.webp".homePath, width: 18, height: 18),
child: Image.asset("history_delete.webp".homePath,
width: 18, height: 18),
),
),
],
@@ -74,7 +75,8 @@ class _SearchHistoryViewState extends State<SearchHistoryView> {
mainAxisSpacing: 12,
crossAxisSpacing: 12,
),
itemBuilder: (_, index) => _buildHistoryItem(widget.histories[index]),
itemBuilder: (_, index) =>
_buildHistoryItem(widget.histories[index]),
),
_buildMoreRecord(),
],
@@ -108,7 +110,8 @@ class _SearchHistoryViewState extends State<SearchHistoryView> {
return Container(
padding: const EdgeInsets.only(top: 12),
alignment: Alignment.topCenter,
child: InkWell(enableFeedback: false,
child: InkWell(
enableFeedback: false,
onTap: () => setState(() => isExpandData = !isExpandData),
child: Row(
mainAxisSize: MainAxisSize.min,
@@ -1,8 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:hgmj/config/config.dart';
import 'package:hgmj/hj_utils/screen.dart';
import 'package:wydj/config/config.dart';
import 'package:wydj/hj_utils/screen.dart';
class SearchHotTagView extends StatelessWidget {
final Function(String keyword) onTagClick;
@@ -1,20 +1,21 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:hgmj/assets_tool/app_colors.dart';
import 'package:hgmj/hj_model/video_model.dart';
import 'package:hgmj/hj_utils/screen.dart';
import 'package:hgmj/tools_base/widget/net_image_widget.dart';
import 'package:wydj/assets_tool/app_colors.dart';
import 'package:wydj/hj_model/video_model.dart';
import 'package:wydj/hj_utils/screen.dart';
import 'package:wydj/tools_base/widget/net_image_widget.dart';
import '../../../community/community_tag_page/community_tag_page.dart';
import 'package:hgmj/extension/extensions.dart';
import 'package:wydj/extension/extensions.dart';
class TopicItem extends StatelessWidget {
final TagsBean model;
final bool isSelect;
final Function()? onTap;
const TopicItem({super.key, required this.model, this.onTap, this.isSelect = false});
const TopicItem(
{super.key, required this.model, this.onTap, this.isSelect = false});
@override
Widget build(BuildContext context) {
@@ -50,7 +51,10 @@ class TopicItem extends StatelessWidget {
children: [
Text(
'#${model.name}',
style: TextStyle(color: Colors.white, fontSize: 16, fontWeight: FontWeight.w500),
style: TextStyle(
color: Colors.white,
fontSize: 16,
fontWeight: FontWeight.w500),
maxLines: 1,
overflow: TextOverflow.ellipsis,
),