opt: const page (#1736)

This commit is contained in:
My-Responsitories
2025-11-12 07:33:28 +08:00
committed by GitHub
parent 9310732343
commit 8f3c9f029c
3 changed files with 4 additions and 4 deletions

View File

@@ -77,7 +77,7 @@ abstract class PageUtils {
);
} else if (context.mounted) {
UserModel? userModel = await Navigator.of(context).push(
GetPageRoute(page: ContactPage.new),
GetPageRoute(page: () => const ContactPage()),
);
if (userModel != null) {
selectedIndex = 0;
@@ -710,7 +710,7 @@ abstract class PageUtils {
}
}
static Future? toVideoPage({
static Future<void>? toVideoPage({
VideoType videoType = VideoType.ugc,
int? aid,
String? bvid,