Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-10 09:54:51 +08:00
parent cff6902e59
commit 4d748f95af
16 changed files with 511 additions and 666 deletions

View File

@@ -50,30 +50,27 @@ class _LivePageState extends State<LivePage>
Widget build(BuildContext context) {
super.build(context);
final ThemeData theme = Theme.of(context);
return Container(
clipBehavior: Clip.hardEdge,
margin: const EdgeInsets.symmetric(horizontal: Style.safeSpace),
decoration: const BoxDecoration(borderRadius: Style.mdRadius),
child: refreshIndicator(
onRefresh: controller.onRefresh,
child: CustomScrollView(
controller: controller.scrollController,
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
SliverPadding(
padding: const EdgeInsets.only(
top: Style.cardSpace,
bottom: 100,
),
sliver: SliverMainAxisGroup(
slivers: [
Obx(() => _buildTop(theme, controller.topState.value)),
Obx(() => _buildBody(theme, controller.loadingState.value)),
],
),
return refreshIndicator(
onRefresh: controller.onRefresh,
child: CustomScrollView(
controller: controller.scrollController,
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
SliverPadding(
padding: const .only(
left: Style.cardSpace,
top: Style.cardSpace,
right: Style.cardSpace,
bottom: 100,
),
],
),
sliver: SliverMainAxisGroup(
slivers: [
Obx(() => _buildTop(theme, controller.topState.value)),
Obx(() => _buildBody(theme, controller.loadingState.value)),
],
),
),
],
),
);
}

View File

@@ -29,24 +29,24 @@ class _RcmdPageState extends State<RcmdPage>
Widget build(BuildContext context) {
super.build(context);
final colorScheme = ColorScheme.of(context);
return Container(
clipBehavior: .hardEdge,
margin: const .symmetric(horizontal: Style.safeSpace),
decoration: const BoxDecoration(borderRadius: Style.mdRadius),
child: refreshIndicator(
onRefresh: controller.onRefresh,
child: CustomScrollView(
controller: controller.scrollController,
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
SliverPadding(
padding: const .only(top: Style.cardSpace, bottom: 100),
sliver: Obx(
() => _buildBody(colorScheme, controller.loadingState.value),
),
return refreshIndicator(
onRefresh: controller.onRefresh,
child: CustomScrollView(
controller: controller.scrollController,
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
SliverPadding(
padding: const .only(
left: Style.safeSpace,
top: Style.cardSpace,
right: Style.safeSpace,
bottom: 100,
),
],
),
sliver: Obx(
() => _buildBody(colorScheme, controller.loadingState.value),
),
),
],
),
);
}

View File

@@ -291,6 +291,7 @@ class ReplyItemGrpc extends StatelessWidget {
padding: padding,
child: custom_text.Text.rich(
primary: theme.colorScheme.primary,
maxLines: replyLevel == 1 ? 6 : null,
style: TextStyle(
height: 1.75,
fontSize: theme.textTheme.bodyMedium!.fontSize,