mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: reply2relpy header
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -116,16 +116,19 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel>
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
key: _key,
|
key: _key,
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
body: Container(
|
appBar: PreferredSize(
|
||||||
// height: widget.source == 'videoDetail'
|
preferredSize: Size.fromHeight(widget.source == 'videoDetail' ? 45 : 1),
|
||||||
// ? Utils.getSheetHeight(context)
|
child: widget.source == 'videoDetail'
|
||||||
// : null,
|
? Container(
|
||||||
color: Theme.of(context).colorScheme.surface,
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
if (widget.source == 'videoDetail')
|
|
||||||
Container(
|
|
||||||
height: 45,
|
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),
|
padding: const EdgeInsets.only(left: 12, right: 2),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
@@ -138,13 +141,13 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel>
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
)
|
||||||
Divider(
|
: Divider(
|
||||||
height: 1,
|
height: 1,
|
||||||
color: Theme.of(context).dividerColor.withOpacity(0.1),
|
color: Theme.of(context).dividerColor.withOpacity(0.1),
|
||||||
),
|
),
|
||||||
Expanded(
|
),
|
||||||
child: refreshIndicator(
|
body: refreshIndicator(
|
||||||
onRefresh: () async {
|
onRefresh: () async {
|
||||||
await _videoReplyReplyController.onRefresh();
|
await _videoReplyReplyController.onRefresh();
|
||||||
},
|
},
|
||||||
@@ -153,16 +156,14 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel>
|
|||||||
children: [
|
children: [
|
||||||
ScrollablePositionedList.builder(
|
ScrollablePositionedList.builder(
|
||||||
itemPositionsListener: itemPositionsListener,
|
itemPositionsListener: itemPositionsListener,
|
||||||
itemCount: _itemCount(
|
itemCount:
|
||||||
_videoReplyReplyController.loadingState.value),
|
_itemCount(_videoReplyReplyController.loadingState.value),
|
||||||
itemScrollController:
|
itemScrollController: _videoReplyReplyController.itemScrollCtr,
|
||||||
_videoReplyReplyController.itemScrollCtr,
|
|
||||||
physics: const AlwaysScrollableScrollPhysics(),
|
physics: const AlwaysScrollableScrollPhysics(),
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
if (widget.isDialogue) {
|
if (widget.isDialogue) {
|
||||||
return _buildBody(
|
return _buildBody(
|
||||||
_videoReplyReplyController.loadingState.value,
|
_videoReplyReplyController.loadingState.value, index);
|
||||||
index);
|
|
||||||
} else if (firstFloor != null) {
|
} else if (firstFloor != null) {
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
return GlobalData().grpcReply
|
return GlobalData().grpcReply
|
||||||
@@ -197,9 +198,7 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel>
|
|||||||
} else if (index == 1) {
|
} else if (index == 1) {
|
||||||
return Divider(
|
return Divider(
|
||||||
height: 20,
|
height: 20,
|
||||||
color: Theme.of(context)
|
color: Theme.of(context).dividerColor.withOpacity(0.1),
|
||||||
.dividerColor
|
|
||||||
.withOpacity(0.1),
|
|
||||||
thickness: 6,
|
thickness: 6,
|
||||||
);
|
);
|
||||||
} else if (index == 2) {
|
} else if (index == 2) {
|
||||||
@@ -221,17 +220,12 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel>
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
if (!widget.isDialogue &&
|
if (!widget.isDialogue &&
|
||||||
_videoReplyReplyController.loadingState.value
|
_videoReplyReplyController.loadingState.value is Success)
|
||||||
is Success)
|
|
||||||
_header,
|
_header,
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user