Skip to content

Commit

Permalink
Merge pull request thunder-app#358 from CTalvio/improved_image_viewer
Browse files Browse the repository at this point in the history
Improved image viewer, part two
  • Loading branch information
hjiangsu authored Jul 15, 2023
2 parents 62338a6 + 5eebb91 commit e65dfc5
Show file tree
Hide file tree
Showing 3 changed files with 210 additions and 138 deletions.
5 changes: 3 additions & 2 deletions lib/shared/image_preview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ class _ImagePreviewState extends State<ImagePreview> {
}

void onImageTap(BuildContext context) {
Navigator.of(context).push(
Navigator.of(context).push( // TODO This is probably where BlocProvider breaks
PageRouteBuilder(
opaque: false,
transitionDuration: const Duration(milliseconds: 400),
transitionDuration: const Duration(milliseconds: 150),
reverseTransitionDuration: const Duration(milliseconds: 150),
pageBuilder: (BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation) {
String heroKey = generateRandomHeroString();

Expand Down
Loading

0 comments on commit e65dfc5

Please sign in to comment.