mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
opt: const page (#1736)
This commit is contained in:
committed by
GitHub
parent
9310732343
commit
8f3c9f029c
@@ -177,7 +177,7 @@ class _SharePanelState extends State<SharePanel> {
|
|||||||
onTap: () async {
|
onTap: () async {
|
||||||
_focusNode.unfocus();
|
_focusNode.unfocus();
|
||||||
UserModel? userModel = await Navigator.of(context).push(
|
UserModel? userModel = await Navigator.of(context).push(
|
||||||
GetPageRoute(page: ContactPage.new),
|
GetPageRoute(page: () => const ContactPage()),
|
||||||
);
|
);
|
||||||
if (userModel != null) {
|
if (userModel != null) {
|
||||||
_userList
|
_userList
|
||||||
|
|||||||
@@ -528,7 +528,7 @@ class _DownloadPanelState extends State<DownloadPanel> {
|
|||||||
_buildBottomBtn(
|
_buildBottomBtn(
|
||||||
text: '查看缓存',
|
text: '查看缓存',
|
||||||
onTap: () => Navigator.of(context).push(
|
onTap: () => Navigator.of(context).push(
|
||||||
GetPageRoute(page: DownloadPage.new),
|
GetPageRoute(page: () => const DownloadPage()),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ abstract class PageUtils {
|
|||||||
);
|
);
|
||||||
} else if (context.mounted) {
|
} else if (context.mounted) {
|
||||||
UserModel? userModel = await Navigator.of(context).push(
|
UserModel? userModel = await Navigator.of(context).push(
|
||||||
GetPageRoute(page: ContactPage.new),
|
GetPageRoute(page: () => const ContactPage()),
|
||||||
);
|
);
|
||||||
if (userModel != null) {
|
if (userModel != null) {
|
||||||
selectedIndex = 0;
|
selectedIndex = 0;
|
||||||
@@ -710,7 +710,7 @@ abstract class PageUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static Future? toVideoPage({
|
static Future<void>? toVideoPage({
|
||||||
VideoType videoType = VideoType.ugc,
|
VideoType videoType = VideoType.ugc,
|
||||||
int? aid,
|
int? aid,
|
||||||
String? bvid,
|
String? bvid,
|
||||||
|
|||||||
Reference in New Issue
Block a user