深色模式、首页设置页面和功能优化
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/// 时间: 2025-03-22
|
||||
/// 功能: 点赞诗词管理器
|
||||
/// 介绍: 管理点赞诗词的加载、显示、删除等操作
|
||||
/// 最新变化: 从FavoritesPage分离出来的点赞管理逻辑
|
||||
/// 最新变化: 从FavoritesPage分离出来的点赞管理逻辑,添加底部内边距适配液态玻璃导航栏
|
||||
|
||||
library liked_poetry_manager;
|
||||
|
||||
@@ -10,10 +10,11 @@ import 'dart:async' show StreamSubscription;
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import '../../../constants/app_constants.dart';
|
||||
import '../../../config/app_config.dart';
|
||||
import '../../../controllers/history_controller.dart';
|
||||
import '../../../utils/http/poetry_api.dart';
|
||||
import '../../../services/network_listener_service.dart';
|
||||
import '../home/home_components.dart';
|
||||
import '../home/set/home_components.dart';
|
||||
|
||||
/// 点赞诗词管理器
|
||||
class LikedPoetryManager extends StatefulWidget {
|
||||
@@ -453,7 +454,13 @@ class _LikedPoetryManagerState extends State<LikedPoetryManager>
|
||||
return RefreshIndicator(
|
||||
onRefresh: _loadLikedPoetry,
|
||||
child: ListView.builder(
|
||||
padding: const EdgeInsets.all(16),
|
||||
// 添加底部内边距,让内容延伸到导航栏下方,实现玻璃效果
|
||||
padding: EdgeInsets.only(
|
||||
left: 16,
|
||||
right: 16,
|
||||
top: 16,
|
||||
bottom: AppConfig.liquidGlassTotalHeight + 16,
|
||||
),
|
||||
itemCount: _likedPoetryList.length + 1,
|
||||
itemBuilder: (context, index) {
|
||||
if (index == _likedPoetryList.length) {
|
||||
|
||||
Reference in New Issue
Block a user