-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: re-designed playlist/album page
- Loading branch information
Showing
6 changed files
with
294 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:go_router/go_router.dart'; | ||
|
||
class SpotubePage<T> extends MaterialPage<T> { | ||
const SpotubePage({required super.child}); | ||
} | ||
|
||
class SpotubeSlidePage extends CustomTransitionPage { | ||
SpotubeSlidePage({ | ||
required super.child, | ||
super.key, | ||
}) : super( | ||
reverseTransitionDuration: const Duration(milliseconds: 150), | ||
transitionDuration: const Duration(milliseconds: 150), | ||
transitionsBuilder: (context, animation, secondaryAnimation, child) { | ||
return SlideTransition( | ||
position: Tween<Offset>( | ||
begin: const Offset(1, 0), | ||
end: Offset.zero, | ||
).animate(animation), | ||
child: child, | ||
); | ||
}, | ||
); | ||
} |
Oops, something went wrong.