Skip to content

Commit

Permalink
feat: 手动播放增加回到主页按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Jan 14, 2025
1 parent 4494b70 commit 8110d90
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/pages/video/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,17 @@ class _VideoDetailPageState extends State<VideoDetailPage>
elevation: 0,
scrolledUnderElevation: 0,
backgroundColor: Colors.transparent,
title: IconButton(
tooltip: '回到主页',
icon: const Icon(Icons.home),
onPressed: () async {
if (mounted) {
popRouteStackContinuously = Get.currentRoute;
Get.until((route) => route.isFirst);
popRouteStackContinuously = "";
}
},
),
actions: [
IconButton(
tooltip: '稍后再看',
Expand Down

0 comments on commit 8110d90

Please sign in to comment.