generated from dellevin/template
卡片样式详情界面优化
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user