Skip to content

Commit

Permalink
bookmark: opaque false when bookmark item tapped
Browse files Browse the repository at this point in the history
  • Loading branch information
violet-dev committed Jan 2, 2022
1 parent 6d62059 commit 977ae36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/pages/bookmark/bookmark_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ class _BookmarkPageState extends State<BookmarkPage>
id == -1
? RecordViewPage()
: GroupArticleListPage(groupId: id, name: name),
opaque: false,
);
},
onLongPress: () async {
Expand Down
4 changes: 3 additions & 1 deletion lib/pages/segment/platform_navigator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ class PlatformNavigator {
}
}

static Future<T> navigateSlide<T>(BuildContext context, Widget page) async {
static Future<T> navigateSlide<T>(BuildContext context, Widget page,
{bool opaque = true}) async {
if (!Platform.isIOS) {
return await Navigator.of(context).push<T>(PageRouteBuilder(
opaque: opaque,
transitionDuration: Duration(milliseconds: 500),
transitionsBuilder: (context, animation, secondaryAnimation, child) {
var begin = Offset(0.0, 1.0);
Expand Down

0 comments on commit 977ae36

Please sign in to comment.