@@ -5,7 +5,6 @@ import 'package:flutter/foundation.dart';
55import 'package:flutter/material.dart' ;
66import 'package:flutter_bloc/flutter_bloc.dart' ;
77import 'package:go_router/go_router.dart' ;
8- import 'package:local_hero/local_hero.dart' ;
98import 'package:tuihub_protos/librarian/sephirah/v1/gebura.pb.dart' ;
109import 'package:tuihub_protos/librarian/sephirah/v1/tiphereth.pb.dart' ;
1110import 'package:tuihub_protos/librarian/v1/common.pb.dart' ;
@@ -366,13 +365,6 @@ class GeburaRoute extends StatefulShellBranchData {
366365 const GeburaRoute ();
367366
368367 static final GlobalKey <NavigatorState > $navigatorKey = _geburaNavigateKey;
369-
370- static Widget rootWidget ({required Widget child}) {
371- return LocalHeroScope (
372- curve: Curves .easeInOut,
373- child: child,
374- );
375- }
376368}
377369
378370class GeburaRootRoute extends GoRouteData {
@@ -389,14 +381,12 @@ class GeburaStoreRoute extends GoRouteData {
389381
390382 @override
391383 Page <void > buildPage (BuildContext context, GoRouterState state) {
392- return NoTransitionPage (
393- child: GeburaRoute .rootWidget (
394- child: const ModuleFramePage (
395- leftPart: GeburaNav (
396- function: GeburaFunctions .store,
397- ),
398- middlePart: GeburaStorePage (),
384+ return const NoTransitionPage (
385+ child: ModuleFramePage (
386+ leftPart: GeburaNav (
387+ function: GeburaFunctions .store,
399388 ),
389+ middlePart: GeburaStorePage (),
400390 ),
401391 );
402392 }
@@ -407,14 +397,12 @@ class GeburaLibraryRoute extends GoRouteData {
407397
408398 @override
409399 Page <void > buildPage (BuildContext context, GoRouterState state) {
410- return NoTransitionPage (
411- child: GeburaRoute .rootWidget (
412- child: const ModuleFramePage (
413- leftPart: GeburaNav (
414- function: GeburaFunctions .library,
415- ),
416- middlePart: GeburaLibraryOverview (),
400+ return const NoTransitionPage (
401+ child: ModuleFramePage (
402+ leftPart: GeburaNav (
403+ function: GeburaFunctions .library,
417404 ),
405+ middlePart: GeburaLibraryOverview (),
418406 ),
419407 );
420408 }
@@ -438,14 +426,12 @@ class GeburaLibrarySettingsRoute extends GoRouteData {
438426 ),
439427 };
440428 return NoTransitionPage (
441- child: GeburaRoute .rootWidget (
442- child: ModuleFramePage (
443- leftPart: const GeburaNav (
444- function: GeburaFunctions .librarySettings,
445- ),
446- middlePart: const GeburaLibrarySettingsPage (),
447- rightPart: actions[action] ?? Container (),
429+ child: ModuleFramePage (
430+ leftPart: const GeburaNav (
431+ function: GeburaFunctions .librarySettings,
448432 ),
433+ middlePart: const GeburaLibrarySettingsPage (),
434+ rightPart: actions[action] ?? Container (),
449435 ),
450436 );
451437 }
@@ -493,17 +479,19 @@ class GeburaLibraryDetailRoute extends GoRouteData {
493479 : null ,
494480 ),
495481 };
496- return NoTransitionPage (
497- child: GeburaRoute .rootWidget (
498- child: ModuleFramePage (
499- leftPart: GeburaNav (
500- function: GeburaFunctions .library,
501- selectedItem: uuid,
502- ),
503- middlePart: GeburaLibraryDetailPage (uuid: uuid),
504- rightPart: actions[action] ?? Container (),
482+ return CustomTransitionPage (
483+ child: ModuleFramePage (
484+ leftPart: GeburaNav (
485+ function: GeburaFunctions .library,
486+ selectedItem: uuid,
505487 ),
488+ middlePart: GeburaLibraryDetailPage (uuid: uuid),
489+ rightPart: actions[action] ?? Container (),
506490 ),
491+ transitionsBuilder: (BuildContext context, Animation <double > animation,
492+ Animation <double > secondaryAnimation, Widget child) {
493+ return child;
494+ },
507495 );
508496 }
509497}
0 commit comments