generated from dellevin/template
卡片样式详情界面优化
This commit is contained in:
@@ -990,7 +990,7 @@ class _BookDetailPageState extends State<BookDetailPage> {
|
|||||||
children: [
|
children: [
|
||||||
Center(child: _buildLayeredCover(book)),
|
Center(child: _buildLayeredCover(book)),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
_buildLayeredHeader(book),
|
SizedBox(width: double.infinity, child: _buildLayeredHeader(book)),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
_buildLayeredInfoRow('作者', book.authors.join(','), colors),
|
_buildLayeredInfoRow('作者', book.authors.join(','), colors),
|
||||||
if (book.translators.isNotEmpty)
|
if (book.translators.isNotEmpty)
|
||||||
@@ -1049,6 +1049,7 @@ class _BookDetailPageState extends State<BookDetailPage> {
|
|||||||
Widget _buildLayeredHeader(Book book) {
|
Widget _buildLayeredHeader(Book book) {
|
||||||
final colors = Theme.of(context).colorScheme;
|
final colors = Theme.of(context).colorScheme;
|
||||||
return Column(
|
return Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Text(book.title,
|
Text(book.title,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
|
|||||||
@@ -1225,7 +1225,7 @@ class _GameDetailPageState extends State<GameDetailPage> {
|
|||||||
children: [
|
children: [
|
||||||
Center(child: _buildLayeredCover(game)),
|
Center(child: _buildLayeredCover(game)),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
_buildLayeredHeader(game),
|
SizedBox(width: double.infinity, child: _buildLayeredHeader(game)),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
if (game.platforms.isNotEmpty)
|
if (game.platforms.isNotEmpty)
|
||||||
_buildLayeredInfoRow('平台', game.platforms.join('、'), colors),
|
_buildLayeredInfoRow('平台', game.platforms.join('、'), colors),
|
||||||
@@ -1322,6 +1322,7 @@ class _GameDetailPageState extends State<GameDetailPage> {
|
|||||||
Widget _buildLayeredHeader(Game game) {
|
Widget _buildLayeredHeader(Game game) {
|
||||||
final colors = Theme.of(context).colorScheme;
|
final colors = Theme.of(context).colorScheme;
|
||||||
return Column(
|
return Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Text(game.title,
|
Text(game.title,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
|
|||||||
@@ -1148,7 +1148,7 @@ class _MovieDetailPageState extends State<MovieDetailPage> {
|
|||||||
// 居中海报卡片
|
// 居中海报卡片
|
||||||
Center(child: _buildLayeredPoster(movie)),
|
Center(child: _buildLayeredPoster(movie)),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
_buildLayeredHeader(movie),
|
SizedBox(width: double.infinity, child: _buildLayeredHeader(movie)),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
if (movie.directors.isNotEmpty)
|
if (movie.directors.isNotEmpty)
|
||||||
_buildLayeredInfoRow('导演', movie.directors.join(','), colors),
|
_buildLayeredInfoRow('导演', movie.directors.join(','), colors),
|
||||||
@@ -1230,6 +1230,7 @@ class _MovieDetailPageState extends State<MovieDetailPage> {
|
|||||||
Widget _buildLayeredHeader(Movie movie) {
|
Widget _buildLayeredHeader(Movie movie) {
|
||||||
final colors = Theme.of(context).colorScheme;
|
final colors = Theme.of(context).colorScheme;
|
||||||
return Column(
|
return Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Text(movie.title,
|
Text(movie.title,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
|
|||||||
Reference in New Issue
Block a user