mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-09 11:39:46 +08:00
search download
This commit is contained in:
@@ -55,7 +55,7 @@ class MyApp extends StatelessWidget {
|
||||
routes: [
|
||||
GoRoute(
|
||||
path: WelcomePage.route,
|
||||
builder: (context, state) => WelcomePage(),
|
||||
builder: (context, state) => const WelcomePage(),
|
||||
),
|
||||
GoRoute(
|
||||
path: SearchPage.route,
|
||||
@@ -63,7 +63,7 @@ class MyApp extends StatelessWidget {
|
||||
),
|
||||
GoRoute(
|
||||
path: SystemSettingsPage.route,
|
||||
builder: (context, state) => SystemSettingsPage(),
|
||||
builder: (context, state) => const SystemSettingsPage(),
|
||||
),
|
||||
GoRoute(
|
||||
path: TvDetailsPage.route,
|
||||
@@ -107,3 +107,16 @@ class MyApp extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
CustomTransitionPage buildPageWithDefaultTransition<T>({
|
||||
required BuildContext context,
|
||||
required GoRouterState state,
|
||||
required Widget child,
|
||||
}) {
|
||||
return CustomTransitionPage<T>(
|
||||
key: state.pageKey,
|
||||
child: child,
|
||||
transitionsBuilder: (context, animation, secondaryAnimation, child) =>
|
||||
FadeTransition(opacity: animation, child: child),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user