mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00

imageToUrlString uses uuid instead of DateTime.now() seperated parts of Player for reuse accross different sizes of screen's specific widgets integrating go_router to follow declarative route approach
19 lines
548 B
Dart
19 lines
548 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class SpotubePageRoute extends PageRouteBuilder {
|
|
final Widget child;
|
|
SpotubePageRoute({required this.child})
|
|
: super(
|
|
pageBuilder: (context, animation, secondaryAnimation) => child,
|
|
settings: RouteSettings(name: child.key.toString()));
|
|
|
|
@override
|
|
Widget buildTransitions(BuildContext context, Animation<double> animation,
|
|
Animation<double> secondaryAnimation, Widget child) {
|
|
return FadeTransition(
|
|
opacity: animation,
|
|
child: child,
|
|
);
|
|
}
|
|
}
|