mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: replyReplyPanel
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -163,9 +163,10 @@ class _ArticlePageState extends State<ArticlePage>
|
|||||||
EasyThrottle.throttle('replyReply', const Duration(milliseconds: 500), () {
|
EasyThrottle.throttle('replyReply', const Duration(milliseconds: 500), () {
|
||||||
int oid = replyItem.oid.toInt();
|
int oid = replyItem.oid.toInt();
|
||||||
int rpid = replyItem.id.toInt();
|
int rpid = replyItem.id.toInt();
|
||||||
Widget replyReplyPage(
|
Widget replyReplyPage({
|
||||||
[bool automaticallyImplyLeading = true,
|
bool automaticallyImplyLeading = true,
|
||||||
VoidCallback? onDispose]) =>
|
VoidCallback? onDispose,
|
||||||
|
}) =>
|
||||||
Scaffold(
|
Scaffold(
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
@@ -177,6 +178,7 @@ class _ArticlePageState extends State<ArticlePage>
|
|||||||
top: false,
|
top: false,
|
||||||
bottom: false,
|
bottom: false,
|
||||||
child: VideoReplyReplyPanel(
|
child: VideoReplyReplyPanel(
|
||||||
|
enableSlide: false,
|
||||||
id: id,
|
id: id,
|
||||||
oid: oid,
|
oid: oid,
|
||||||
rpid: rpid,
|
rpid: rpid,
|
||||||
@@ -208,8 +210,8 @@ class _ArticlePageState extends State<ArticlePage>
|
|||||||
context: context,
|
context: context,
|
||||||
removeLeft: true,
|
removeLeft: true,
|
||||||
child: replyReplyPage(
|
child: replyReplyPage(
|
||||||
false,
|
automaticallyImplyLeading: false,
|
||||||
() {
|
onDispose: () {
|
||||||
if (isFabVisible && _imageStatus != true) {
|
if (isFabVisible && _imageStatus != true) {
|
||||||
_showFab();
|
_showFab();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,9 +161,10 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
EasyThrottle.throttle('replyReply', const Duration(milliseconds: 500), () {
|
EasyThrottle.throttle('replyReply', const Duration(milliseconds: 500), () {
|
||||||
int oid = replyItem.oid.toInt();
|
int oid = replyItem.oid.toInt();
|
||||||
int rpid = replyItem.id.toInt();
|
int rpid = replyItem.id.toInt();
|
||||||
Widget replyReplyPage(
|
Widget replyReplyPage({
|
||||||
[bool automaticallyImplyLeading = true,
|
bool automaticallyImplyLeading = true,
|
||||||
VoidCallback? onDispose]) =>
|
VoidCallback? onDispose,
|
||||||
|
}) =>
|
||||||
Scaffold(
|
Scaffold(
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
@@ -175,6 +176,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
top: false,
|
top: false,
|
||||||
bottom: false,
|
bottom: false,
|
||||||
child: VideoReplyReplyPanel(
|
child: VideoReplyReplyPanel(
|
||||||
|
enableSlide: false,
|
||||||
id: id,
|
id: id,
|
||||||
oid: oid,
|
oid: oid,
|
||||||
rpid: rpid,
|
rpid: rpid,
|
||||||
@@ -206,8 +208,8 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
context: context,
|
context: context,
|
||||||
removeLeft: true,
|
removeLeft: true,
|
||||||
child: replyReplyPage(
|
child: replyReplyPage(
|
||||||
false,
|
automaticallyImplyLeading: false,
|
||||||
() {
|
onDispose: () {
|
||||||
if (isFabVisible && _imageStatus != true) {
|
if (isFabVisible && _imageStatus != true) {
|
||||||
_showFab();
|
_showFab();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import 'package:scrollable_positioned_list/scrollable_positioned_list.dart';
|
|||||||
class VideoReplyReplyPanel extends CommonSlidePage {
|
class VideoReplyReplyPanel extends CommonSlidePage {
|
||||||
const VideoReplyReplyPanel({
|
const VideoReplyReplyPanel({
|
||||||
super.key,
|
super.key,
|
||||||
|
super.enableSlide,
|
||||||
this.id,
|
this.id,
|
||||||
required this.oid,
|
required this.oid,
|
||||||
required this.rpid,
|
required this.rpid,
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ class PiliScheme {
|
|||||||
top: false,
|
top: false,
|
||||||
bottom: false,
|
bottom: false,
|
||||||
child: VideoReplyReplyPanel(
|
child: VideoReplyReplyPanel(
|
||||||
|
enableSlide: false,
|
||||||
oid: int.parse(oid),
|
oid: int.parse(oid),
|
||||||
rpid: rpid,
|
rpid: rpid,
|
||||||
source: 'routePush',
|
source: 'routePush',
|
||||||
@@ -278,6 +279,7 @@ class PiliScheme {
|
|||||||
top: false,
|
top: false,
|
||||||
bottom: false,
|
bottom: false,
|
||||||
child: VideoReplyReplyPanel(
|
child: VideoReplyReplyPanel(
|
||||||
|
enableSlide: false,
|
||||||
oid: oid,
|
oid: oid,
|
||||||
rpid: rootId,
|
rpid: rootId,
|
||||||
id: rpId,
|
id: rpId,
|
||||||
@@ -328,6 +330,7 @@ class PiliScheme {
|
|||||||
top: false,
|
top: false,
|
||||||
bottom: false,
|
bottom: false,
|
||||||
child: VideoReplyReplyPanel(
|
child: VideoReplyReplyPanel(
|
||||||
|
enableSlide: false,
|
||||||
oid: oid,
|
oid: oid,
|
||||||
rpid: rpId,
|
rpid: rpId,
|
||||||
source: 'routePush',
|
source: 'routePush',
|
||||||
@@ -392,6 +395,7 @@ class PiliScheme {
|
|||||||
top: false,
|
top: false,
|
||||||
bottom: false,
|
bottom: false,
|
||||||
child: VideoReplyReplyPanel(
|
child: VideoReplyReplyPanel(
|
||||||
|
enableSlide: false,
|
||||||
oid: oid ?? int.parse(dynId),
|
oid: oid ?? int.parse(dynId),
|
||||||
rpid: rpid,
|
rpid: rpid,
|
||||||
source: 'routePush',
|
source: 'routePush',
|
||||||
|
|||||||
Reference in New Issue
Block a user