Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-11-01 11:01:31 +08:00
parent 0a5965a423
commit 77dd939172
10 changed files with 40 additions and 40 deletions

View File

@@ -347,13 +347,15 @@ class _ArticlePageState extends CommonDynPageState<ArticlePage> {
src: controller.summary.author?.face, src: controller.summary.author?.face,
), ),
const SizedBox(width: 10), const SizedBox(width: 10),
Column( Flexible(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( Text(
controller.summary.author?.name ?? '', controller.summary.author?.name ?? '',
style: TextStyle( style: TextStyle(
fontSize: theme.textTheme.titleSmall!.fontSize, fontSize:
theme.textTheme.titleSmall!.fontSize,
), ),
), ),
if (pubTime != null) if (pubTime != null)
@@ -367,6 +369,7 @@ class _ArticlePageState extends CommonDynPageState<ArticlePage> {
), ),
], ],
), ),
),
], ],
), ),
), ),

View File

@@ -49,12 +49,10 @@ Widget htmlRender({
return Hero( return Hero(
tag: imgUrl, tag: imgUrl,
child: GestureDetector( child: GestureDetector(
onTap: () { onTap: () => PageUtils.imageView(
PageUtils.imageView(
imgList: [SourceModel(url: imgUrl)], imgList: [SourceModel(url: imgUrl)],
quality: 60, quality: 60,
); ),
},
child: CachedNetworkImage( child: CachedNetworkImage(
width: size, width: size,
height: size, height: size,

View File

@@ -191,12 +191,10 @@ class OpusContent extends StatelessWidget {
return Hero( return Hero(
tag: pic.url!, tag: pic.url!,
child: GestureDetector( child: GestureDetector(
onTap: () { onTap: () => PageUtils.imageView(
PageUtils.imageView(
imgList: [SourceModel(url: pic.url!)], imgList: [SourceModel(url: pic.url!)],
quality: 60, quality: 60,
); ),
},
child: Center( child: Center(
child: CachedNetworkImage( child: CachedNetworkImage(
width: width, width: width,

View File

@@ -137,9 +137,12 @@ class _ArticleListPageState extends State<ArticleListPage> with GridMixin {
if (_controller.author != null) ...[ if (_controller.author != null) ...[
const SizedBox(height: 10), const SizedBox(height: 10),
GestureDetector( GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => onTap: () =>
Get.toNamed('/member?mid=${_controller.author!.mid}'), Get.toNamed('/member?mid=${_controller.author!.mid}'),
child: Row( child: Row(
spacing: 10,
mainAxisSize: MainAxisSize.min,
children: [ children: [
NetworkImgLayer( NetworkImgLayer(
width: 30, width: 30,
@@ -147,8 +150,7 @@ class _ArticleListPageState extends State<ArticleListPage> with GridMixin {
src: _controller.author!.face, src: _controller.author!.face,
type: ImageType.avatar, type: ImageType.avatar,
), ),
const SizedBox(width: 10), Flexible(child: Text(_controller.author!.name!)),
Text(_controller.author!.name!),
], ],
), ),
), ),

View File

@@ -191,6 +191,7 @@ class _DynTopicPageState extends State<DynTopicPage> with DynMixin {
'/member?mid=${response.topicCreator!.uid}', '/member?mid=${response.topicCreator!.uid}',
), ),
child: Row( child: Row(
spacing: 10,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
NetworkImgLayer( NetworkImgLayer(
@@ -199,7 +200,6 @@ class _DynTopicPageState extends State<DynTopicPage> with DynMixin {
src: response.topicCreator!.face!, src: response.topicCreator!.face!,
type: ImageType.avatar, type: ImageType.avatar,
), ),
const SizedBox(width: 10),
Flexible( Flexible(
child: Text( child: Text(
response.topicCreator!.name!, response.topicCreator!.name!,

View File

@@ -144,11 +144,9 @@ class _PgcIntroPageState extends State<PgcIntroPage> {
clipBehavior: Clip.none, clipBehavior: Clip.none,
children: [ children: [
GestureDetector( GestureDetector(
onTap: () { onTap: () => PageUtils.imageView(
PageUtils.imageView(
imgList: [SourceModel(url: item.cover!)], imgList: [SourceModel(url: item.cover!)],
); ),
},
child: Hero( child: Hero(
tag: item.cover!, tag: item.cover!,
child: NetworkImgLayer( child: NetworkImgLayer(

View File

@@ -397,11 +397,9 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
} }
Widget _buildAvatar(String face) => GestureDetector( Widget _buildAvatar(String face) => GestureDetector(
onTap: () { onTap: () => PageUtils.imageView(
PageUtils.imageView(
imgList: [SourceModel(url: face)], imgList: [SourceModel(url: face)],
); ),
},
child: NetworkImgLayer( child: NetworkImgLayer(
src: face, src: face,
type: ImageType.avatar, type: ImageType.avatar,

View File

@@ -183,6 +183,7 @@ class _WhisperBlockPageState extends State<WhisperBlockPage> {
), ),
GestureDetector( GestureDetector(
onTap: Get.back, onTap: Get.back,
behavior: HitTestBehavior.opaque,
child: Icon( child: Icon(
Icons.clear, Icons.clear,
color: theme.colorScheme.onSurfaceVariant, color: theme.colorScheme.onSurfaceVariant,

View File

@@ -72,6 +72,7 @@ class _WhisperDetailPageState
), ),
), ),
title: GestureDetector( title: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () { onTap: () {
if (_whisperDetailController.mid != null) { if (_whisperDetailController.mid != null) {
feedBack(); feedBack();
@@ -79,6 +80,7 @@ class _WhisperDetailPageState
} }
}, },
child: Row( child: Row(
mainAxisSize: MainAxisSize.min,
children: [ children: [
NetworkImgLayer( NetworkImgLayer(
width: 34, width: 34,

View File

@@ -223,7 +223,7 @@ packages:
description: description:
path: "." path: "."
ref: main ref: main
resolved-ref: "9986919515728fb501e3e62bf4d277dfcd96b799" resolved-ref: "6fee1a981775bee401224c2d622ce50768313746"
url: "https://github.com/bggRGjQaUbCoE/canvas_danmaku.git" url: "https://github.com/bggRGjQaUbCoE/canvas_danmaku.git"
source: git source: git
version: "0.2.6" version: "0.2.6"