mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
opt: post segment
Closes #483 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -95,6 +95,7 @@ class _PostPanelState extends CommonCollapseSlidePageState<PostPanel> {
|
|||||||
...List.generate(
|
...List.generate(
|
||||||
list!.length,
|
list!.length,
|
||||||
(index) => Stack(
|
(index) => Stack(
|
||||||
|
clipBehavior: Clip.none,
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
@@ -284,8 +285,8 @@ class _PostPanelState extends CommonCollapseSlidePageState<PostPanel> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
top: 10,
|
top: 0,
|
||||||
right: 21,
|
right: 4,
|
||||||
child: iconButton(
|
child: iconButton(
|
||||||
context: context,
|
context: context,
|
||||||
size: 26,
|
size: 26,
|
||||||
@@ -426,7 +427,7 @@ class _PostPanelState extends CommonCollapseSlidePageState<PostPanel> {
|
|||||||
iconButton(
|
iconButton(
|
||||||
context: context,
|
context: context,
|
||||||
size: 26,
|
size: 26,
|
||||||
tooltip: '使用当前位置时间',
|
tooltip: '设为当前',
|
||||||
icon: Icons.my_location,
|
icon: Icons.my_location,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
setState(() {
|
setState(() {
|
||||||
@@ -439,6 +440,22 @@ class _PostPanelState extends CommonCollapseSlidePageState<PostPanel> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
const SizedBox(width: 5),
|
const SizedBox(width: 5),
|
||||||
|
iconButton(
|
||||||
|
context: context,
|
||||||
|
size: 26,
|
||||||
|
tooltip: isFirst ? '视频开头' : '视频结尾',
|
||||||
|
icon: isFirst ? Icons.first_page : Icons.last_page,
|
||||||
|
onPressed: () {
|
||||||
|
setState(() {
|
||||||
|
updateSegment(
|
||||||
|
isFirst: isFirst,
|
||||||
|
index: index,
|
||||||
|
value: isFirst ? 0 : plPlayerController.duration.value.inSeconds,
|
||||||
|
);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
),
|
||||||
|
const SizedBox(width: 5),
|
||||||
iconButton(
|
iconButton(
|
||||||
context: context,
|
context: context,
|
||||||
size: 26,
|
size: 26,
|
||||||
|
|||||||
Reference in New Issue
Block a user