mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
28 lines
741 B
Dart
28 lines
741 B
Dart
import 'package:fluent_ui/fluent_ui.dart';
|
|
import 'package:go_router/go_router.dart';
|
|
import 'package:platform_ui/platform_ui.dart';
|
|
|
|
class SpotubePage extends CustomTransitionPage {
|
|
SpotubePage({
|
|
required super.child,
|
|
}) : super(
|
|
transitionsBuilder: (context, animation, secondaryAnimation, child) {
|
|
return child;
|
|
},
|
|
);
|
|
|
|
@override
|
|
Route createRoute(BuildContext context) {
|
|
if (platform == TargetPlatform.windows) {
|
|
return FluentPageRoute(
|
|
builder: (context) => child,
|
|
settings: this,
|
|
maintainState: maintainState,
|
|
barrierLabel: barrierLabel,
|
|
fullscreenDialog: fullscreenDialog,
|
|
);
|
|
}
|
|
return super.createRoute(context);
|
|
}
|
|
}
|