@@ -5,7 +5,6 @@ import 'package:flutter/foundation.dart';
5
5
import 'package:flutter/material.dart' ;
6
6
import 'package:flutter_bloc/flutter_bloc.dart' ;
7
7
import 'package:go_router/go_router.dart' ;
8
- import 'package:local_hero/local_hero.dart' ;
9
8
import 'package:tuihub_protos/librarian/sephirah/v1/gebura.pb.dart' ;
10
9
import 'package:tuihub_protos/librarian/sephirah/v1/tiphereth.pb.dart' ;
11
10
import 'package:tuihub_protos/librarian/v1/common.pb.dart' ;
@@ -366,13 +365,6 @@ class GeburaRoute extends StatefulShellBranchData {
366
365
const GeburaRoute ();
367
366
368
367
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
- }
376
368
}
377
369
378
370
class GeburaRootRoute extends GoRouteData {
@@ -389,14 +381,12 @@ class GeburaStoreRoute extends GoRouteData {
389
381
390
382
@override
391
383
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,
399
388
),
389
+ middlePart: GeburaStorePage (),
400
390
),
401
391
);
402
392
}
@@ -407,14 +397,12 @@ class GeburaLibraryRoute extends GoRouteData {
407
397
408
398
@override
409
399
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,
417
404
),
405
+ middlePart: GeburaLibraryOverview (),
418
406
),
419
407
);
420
408
}
@@ -438,14 +426,12 @@ class GeburaLibrarySettingsRoute extends GoRouteData {
438
426
),
439
427
};
440
428
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,
448
432
),
433
+ middlePart: const GeburaLibrarySettingsPage (),
434
+ rightPart: actions[action] ?? Container (),
449
435
),
450
436
);
451
437
}
@@ -493,17 +479,19 @@ class GeburaLibraryDetailRoute extends GoRouteData {
493
479
: null ,
494
480
),
495
481
};
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,
505
487
),
488
+ middlePart: GeburaLibraryDetailPage (uuid: uuid),
489
+ rightPart: actions[action] ?? Container (),
506
490
),
491
+ transitionsBuilder: (BuildContext context, Animation <double > animation,
492
+ Animation <double > secondaryAnimation, Widget child) {
493
+ return child;
494
+ },
507
495
);
508
496
}
509
497
}
0 commit comments