mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
fix: Use cupertino animations for desktop
This commit is contained in:
parent
e7b5bb40ff
commit
3c09f3619c
1 changed files with 8 additions and 1 deletions
|
|
@ -21,7 +21,14 @@ class AutoRouter extends RootStackRouter {
|
|||
List<AutoRouteGuard> get guards => [...super.guards, AuthGuard(ref: ref)];
|
||||
|
||||
@override
|
||||
RouteType get defaultRouteType => kIsWeb ? const RouteType.material() : const RouteType.adaptive();
|
||||
RouteType get defaultRouteType => kIsWeb ||
|
||||
{
|
||||
TargetPlatform.windows,
|
||||
TargetPlatform.linux,
|
||||
TargetPlatform.macOS,
|
||||
}.contains(defaultTargetPlatform)
|
||||
? const RouteType.cupertino()
|
||||
: const RouteType.adaptive();
|
||||
|
||||
@override
|
||||
List<AutoRoute> get routes => [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue