卡片样式详情界面优化

This commit is contained in:
DelLevin-Home
2026-08-13 09:40:39 +08:00
parent 509d1720bc
commit c16383bbe7
3 changed files with 6 additions and 3 deletions

View File

@@ -990,7 +990,7 @@ class _BookDetailPageState extends State<BookDetailPage> {
children: [
Center(child: _buildLayeredCover(book)),
const SizedBox(height: 20),
_buildLayeredHeader(book),
SizedBox(width: double.infinity, child: _buildLayeredHeader(book)),
const SizedBox(height: 20),
_buildLayeredInfoRow('作者', book.authors.join(''), colors),
if (book.translators.isNotEmpty)
@@ -1049,6 +1049,7 @@ class _BookDetailPageState extends State<BookDetailPage> {
Widget _buildLayeredHeader(Book book) {
final colors = Theme.of(context).colorScheme;
return Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(book.title,
textAlign: TextAlign.center,

View File

@@ -1225,7 +1225,7 @@ class _GameDetailPageState extends State<GameDetailPage> {
children: [
Center(child: _buildLayeredCover(game)),
const SizedBox(height: 20),
_buildLayeredHeader(game),
SizedBox(width: double.infinity, child: _buildLayeredHeader(game)),
const SizedBox(height: 20),
if (game.platforms.isNotEmpty)
_buildLayeredInfoRow('平台', game.platforms.join(''), colors),
@@ -1322,6 +1322,7 @@ class _GameDetailPageState extends State<GameDetailPage> {
Widget _buildLayeredHeader(Game game) {
final colors = Theme.of(context).colorScheme;
return Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(game.title,
textAlign: TextAlign.center,

View File

@@ -1148,7 +1148,7 @@ class _MovieDetailPageState extends State<MovieDetailPage> {
// 居中海报卡片
Center(child: _buildLayeredPoster(movie)),
const SizedBox(height: 20),
_buildLayeredHeader(movie),
SizedBox(width: double.infinity, child: _buildLayeredHeader(movie)),
const SizedBox(height: 20),
if (movie.directors.isNotEmpty)
_buildLayeredInfoRow('导演', movie.directors.join(''), colors),
@@ -1230,6 +1230,7 @@ class _MovieDetailPageState extends State<MovieDetailPage> {
Widget _buildLayeredHeader(Movie movie) {
final colors = Theme.of(context).colorScheme;
return Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(movie.title,
textAlign: TextAlign.center,