mod: reply2relpy header

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-09 15:43:57 +08:00
parent 383ce777e3
commit 31a0a90ba4

View File

@@ -116,16 +116,19 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel>
return Scaffold(
key: _key,
resizeToAvoidBottomInset: false,
body: Container(
// height: widget.source == 'videoDetail'
// ? Utils.getSheetHeight(context)
// : null,
color: Theme.of(context).colorScheme.surface,
child: Column(
children: [
if (widget.source == 'videoDetail')
Container(
appBar: PreferredSize(
preferredSize: Size.fromHeight(widget.source == 'videoDetail' ? 45 : 1),
child: widget.source == 'videoDetail'
? Container(
height: 45,
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(
width: 1,
color: Theme.of(context).dividerColor.withOpacity(0.1),
),
),
),
padding: const EdgeInsets.only(left: 12, right: 2),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
@@ -138,13 +141,13 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel>
),
],
),
),
Divider(
)
: Divider(
height: 1,
color: Theme.of(context).dividerColor.withOpacity(0.1),
),
Expanded(
child: refreshIndicator(
),
body: refreshIndicator(
onRefresh: () async {
await _videoReplyReplyController.onRefresh();
},
@@ -153,16 +156,14 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel>
children: [
ScrollablePositionedList.builder(
itemPositionsListener: itemPositionsListener,
itemCount: _itemCount(
_videoReplyReplyController.loadingState.value),
itemScrollController:
_videoReplyReplyController.itemScrollCtr,
itemCount:
_itemCount(_videoReplyReplyController.loadingState.value),
itemScrollController: _videoReplyReplyController.itemScrollCtr,
physics: const AlwaysScrollableScrollPhysics(),
itemBuilder: (context, index) {
if (widget.isDialogue) {
return _buildBody(
_videoReplyReplyController.loadingState.value,
index);
_videoReplyReplyController.loadingState.value, index);
} else if (firstFloor != null) {
if (index == 0) {
return GlobalData().grpcReply
@@ -197,9 +198,7 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel>
} else if (index == 1) {
return Divider(
height: 20,
color: Theme.of(context)
.dividerColor
.withOpacity(0.1),
color: Theme.of(context).dividerColor.withOpacity(0.1),
thickness: 6,
);
} else if (index == 2) {
@@ -221,17 +220,12 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel>
},
),
if (!widget.isDialogue &&
_videoReplyReplyController.loadingState.value
is Success)
_videoReplyReplyController.loadingState.value is Success)
_header,
],
),
),
),
),
],
),
),
);
}