mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 01:06:21 +01:00
21 lines
571 B
Dart
21 lines
571 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:nc_photos/entity/file_descriptor.dart';
|
|
|
|
class CustomizableMaterialPageRoute extends MaterialPageRoute {
|
|
CustomizableMaterialPageRoute({
|
|
required super.builder,
|
|
super.settings,
|
|
super.maintainState,
|
|
super.fullscreenDialog,
|
|
required this.transitionDuration,
|
|
required this.reverseTransitionDuration,
|
|
});
|
|
|
|
@override
|
|
final Duration transitionDuration;
|
|
|
|
@override
|
|
final Duration reverseTransitionDuration;
|
|
}
|
|
|
|
String getImageHeroTag(FileDescriptor file) => "imageHero(${file.fdPath})";
|