nc-photos/app/lib/flutter_util.dart

22 lines
571 B
Dart
Raw Normal View History

2022-09-07 11:37:50 +02:00
import 'package:flutter/material.dart';
import 'package:nc_photos/entity/file_descriptor.dart';
2022-09-07 11:37:50 +02:00
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})";