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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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