mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-03 17:20:16 +08:00
@@ -2,6 +2,7 @@
|
||||
|
||||
import 'dart:async' show StreamSubscription;
|
||||
|
||||
import 'package:PiliPlus/common/widgets/scaffold/simple_scaffold.dart';
|
||||
import 'package:PiliPlus/common/widgets/view_safe_area.dart';
|
||||
import 'package:PiliPlus/grpc/bilibili/app/listener/v1.pbenum.dart'
|
||||
show PlaylistSource;
|
||||
@@ -366,8 +367,7 @@ abstract final class PiliScheme {
|
||||
return false;
|
||||
case 'livearea':
|
||||
Get.to(
|
||||
Scaffold(
|
||||
resizeToAvoidBottomInset: false,
|
||||
SimpleScaffold(
|
||||
appBar: AppBar(title: const Text('直播')),
|
||||
body: const ViewSafeArea(child: LivePage()),
|
||||
),
|
||||
@@ -375,8 +375,7 @@ abstract final class PiliScheme {
|
||||
return true;
|
||||
case 'rank':
|
||||
Get.to(
|
||||
Scaffold(
|
||||
resizeToAvoidBottomInset: false,
|
||||
SimpleScaffold(
|
||||
appBar: AppBar(title: const Text('排行榜')),
|
||||
body: const ViewSafeArea(child: RankPage()),
|
||||
),
|
||||
|
||||
@@ -413,25 +413,6 @@ abstract final class PageUtils {
|
||||
}
|
||||
}
|
||||
|
||||
static void onHorizontalPreviewState(
|
||||
ScaffoldState state,
|
||||
List<SourceModel> imgList,
|
||||
int index,
|
||||
) {
|
||||
state.showBottomSheet(
|
||||
constraints: const BoxConstraints(),
|
||||
(context) => GalleryViewer(
|
||||
sources: imgList,
|
||||
initIndex: index,
|
||||
quality: GlobalData().imgQuality,
|
||||
),
|
||||
enableDrag: false,
|
||||
elevation: 0.0,
|
||||
backgroundColor: Colors.transparent,
|
||||
sheetAnimationStyle: AnimationStyle.noAnimation,
|
||||
);
|
||||
}
|
||||
|
||||
static void inAppWebview(
|
||||
String url, {
|
||||
bool off = false,
|
||||
|
||||
Reference in New Issue
Block a user