mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: video sheet panel
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -114,15 +114,6 @@ class _ListSheetContentState extends State<ListSheetContent>
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
if (GStorage.collapsibleVideoPage) {
|
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
||||||
if (mounted) {
|
|
||||||
setState(() {
|
|
||||||
_isInit = false;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (_isList) {
|
if (_isList) {
|
||||||
_indexStream ??= StreamController<int>.broadcast();
|
_indexStream ??= StreamController<int>.broadcast();
|
||||||
_ctr = TabController(
|
_ctr = TabController(
|
||||||
@@ -149,9 +140,22 @@ class _ListSheetContentState extends State<ListSheetContent>
|
|||||||
}();
|
}();
|
||||||
}
|
}
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
try {
|
if (GStorage.collapsibleVideoPage) {
|
||||||
itemScrollController[_index].jumpTo(index: currentIndex);
|
if (mounted) {
|
||||||
} catch (_) {}
|
setState(() {
|
||||||
|
_isInit = false;
|
||||||
|
});
|
||||||
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
|
try {
|
||||||
|
itemScrollController[_index].jumpTo(index: currentIndex);
|
||||||
|
} catch (_) {}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
itemScrollController[_index].jumpTo(index: currentIndex);
|
||||||
|
} catch (_) {}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -160,6 +160,8 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
|
|||||||
Success() => Material(
|
Success() => Material(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
child: CustomScrollView(
|
child: CustomScrollView(
|
||||||
|
controller: ScrollController(),
|
||||||
|
physics: const AlwaysScrollableScrollPhysics(),
|
||||||
slivers: [
|
slivers: [
|
||||||
_buildSliverHeader,
|
_buildSliverHeader,
|
||||||
SliverPadding(
|
SliverPadding(
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ class AiDetail extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
|
controller: ScrollController(),
|
||||||
|
physics: const AlwaysScrollableScrollPhysics(),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
if (modelResult.summary?.isNotEmpty == true) ...[
|
if (modelResult.summary?.isNotEmpty == true) ...[
|
||||||
|
|||||||
Reference in New Issue
Block a user