feat: video download

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-11-06 12:12:32 +08:00
parent 976622df89
commit ffd4f9ee73
92 changed files with 4853 additions and 946 deletions

View File

@@ -77,7 +77,7 @@ abstract class PageUtils {
);
} else if (context.mounted) {
UserModel? userModel = await Navigator.of(context).push(
GetPageRoute(page: () => const ContactPage()),
GetPageRoute(page: ContactPage.new),
);
if (userModel != null) {
selectedIndex = 0;
@@ -319,7 +319,6 @@ abstract class PageUtils {
context: context,
useSafeArea: true,
isScrollControlled: true,
sheetAnimationStyle: const AnimationStyle(curve: Curves.ease),
constraints: BoxConstraints(
maxWidth: min(640, context.mediaQueryShortestSide),
),
@@ -707,7 +706,7 @@ abstract class PageUtils {
}
}
static void toVideoPage({
static Future? toVideoPage({
VideoType videoType = VideoType.ugc,
int? aid,
String? bvid,
@@ -719,7 +718,6 @@ abstract class PageUtils {
String? title,
int? progress,
Map? extraArguments,
int? id,
bool off = false,
}) {
final arguments = {
@@ -737,17 +735,15 @@ abstract class PageUtils {
...?extraArguments,
};
if (off) {
Get.offNamed(
return Get.offNamed(
'/videoV',
arguments: arguments,
id: id,
preventDuplicates: false,
);
} else {
Get.toNamed(
return Get.toNamed(
'/videoV',
arguments: arguments,
id: id,
preventDuplicates: false,
);
}