mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 04:00:28 +08:00
opt: const page (#1736)
This commit is contained in:
committed by
GitHub
parent
9310732343
commit
8f3c9f029c
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user