mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
@@ -21,7 +21,7 @@ class VideoReplyPanel extends StatefulWidget {
|
||||
this.onViewImage,
|
||||
this.onDismissed,
|
||||
this.callback,
|
||||
this.needController,
|
||||
required this.needController,
|
||||
});
|
||||
|
||||
final int replyLevel;
|
||||
@@ -30,7 +30,7 @@ class VideoReplyPanel extends StatefulWidget {
|
||||
final VoidCallback? onViewImage;
|
||||
final ValueChanged<int>? onDismissed;
|
||||
final Function(List<String>, int)? callback;
|
||||
final bool? needController;
|
||||
final bool needController;
|
||||
|
||||
@override
|
||||
State<VideoReplyPanel> createState() => _VideoReplyPanelState();
|
||||
@@ -100,14 +100,14 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
|
||||
clipBehavior: Clip.none,
|
||||
children: [
|
||||
CustomScrollView(
|
||||
controller: widget.needController == false
|
||||
? null
|
||||
: _videoReplyController.scrollController,
|
||||
physics: widget.needController == false
|
||||
? const AlwaysScrollableScrollPhysics(
|
||||
controller: widget.needController
|
||||
? _videoReplyController.scrollController
|
||||
: null,
|
||||
physics: widget.needController
|
||||
? const AlwaysScrollableScrollPhysics()
|
||||
: const AlwaysScrollableScrollPhysics(
|
||||
parent: ClampingScrollPhysics(),
|
||||
)
|
||||
: const AlwaysScrollableScrollPhysics(),
|
||||
),
|
||||
key: const PageStorageKey<String>('评论'),
|
||||
slivers: <Widget>[
|
||||
SliverPersistentHeader(
|
||||
|
||||
@@ -116,6 +116,7 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
|
||||
Widget _buildContent(BuildContext context, ThemeData theme) {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
if (PendantAvatar.showDynDecorate &&
|
||||
replyItem.member.hasGarbCardImage())
|
||||
@@ -152,10 +153,7 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
width: double.infinity,
|
||||
child: _buildAuthorPanel(context, theme),
|
||||
),
|
||||
_buildAuthorPanel(context, theme),
|
||||
],
|
||||
)
|
||||
else
|
||||
@@ -439,7 +437,7 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
clipBehavior: Clip.hardEdge,
|
||||
animationDuration: Duration.zero,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
if (replies.isNotEmpty)
|
||||
...List.generate(replies.length, (index) {
|
||||
@@ -478,8 +476,7 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
},
|
||||
);
|
||||
},
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
child: Padding(
|
||||
padding: padding,
|
||||
child: Text.rich(
|
||||
style: TextStyle(
|
||||
@@ -537,8 +534,7 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
if (extraRow)
|
||||
InkWell(
|
||||
onTap: () => replyReply?.call(replyItem, null),
|
||||
child: Container(
|
||||
width: double.infinity,
|
||||
child: Padding(
|
||||
padding: length == 1
|
||||
? const EdgeInsets.fromLTRB(8, 6, 8, 6)
|
||||
: const EdgeInsets.fromLTRB(8, 5, 8, 8),
|
||||
|
||||
Reference in New Issue
Block a user