mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -275,9 +275,7 @@ class _ListSheetContentState extends State<ListSheetContent>
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return ColoredBox(
|
return Column(
|
||||||
color: Theme.of(context).colorScheme.surface,
|
|
||||||
child: Column(
|
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
height: 45,
|
height: 45,
|
||||||
@@ -410,9 +408,7 @@ class _ListSheetContentState extends State<ListSheetContent>
|
|||||||
color: Theme.of(context).dividerColor.withOpacity(0.1),
|
color: Theme.of(context).dividerColor.withOpacity(0.1),
|
||||||
),
|
),
|
||||||
if (_isList)
|
if (_isList)
|
||||||
Material(
|
TabBar(
|
||||||
color: Theme.of(context).colorScheme.surface,
|
|
||||||
child: TabBar(
|
|
||||||
controller: _ctr,
|
controller: _ctr,
|
||||||
padding: const EdgeInsets.only(right: 60),
|
padding: const EdgeInsets.only(right: 60),
|
||||||
isScrollable: true,
|
isScrollable: true,
|
||||||
@@ -422,11 +418,10 @@ class _ListSheetContentState extends State<ListSheetContent>
|
|||||||
dividerHeight: 1,
|
dividerHeight: 1,
|
||||||
dividerColor: Theme.of(context).dividerColor.withOpacity(0.1),
|
dividerColor: Theme.of(context).dividerColor.withOpacity(0.1),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
Expanded(
|
Expanded(
|
||||||
child: _isList
|
child: _isList
|
||||||
? Material(
|
? Material(
|
||||||
color: Theme.of(context).colorScheme.surface,
|
color: Colors.transparent,
|
||||||
child: TabBarView(
|
child: TabBarView(
|
||||||
controller: _ctr,
|
controller: _ctr,
|
||||||
children: List.generate(
|
children: List.generate(
|
||||||
@@ -437,12 +432,11 @@ class _ListSheetContentState extends State<ListSheetContent>
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
: Material(
|
: Material(
|
||||||
color: Theme.of(context).colorScheme.surface,
|
color: Colors.transparent,
|
||||||
child: _buildBody(null, episodes),
|
child: _buildBody(null, episodes),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,8 @@ class VideoCardH extends StatelessWidget {
|
|||||||
try {
|
try {
|
||||||
type = videoItem.type;
|
type = videoItem.type;
|
||||||
} catch (_) {}
|
} catch (_) {}
|
||||||
return Stack(children: [
|
return Stack(
|
||||||
|
children: [
|
||||||
Semantics(
|
Semantics(
|
||||||
label: Utils.videoItemSemantics(videoItem),
|
label: Utils.videoItemSemantics(videoItem),
|
||||||
excludeSemantics: true,
|
excludeSemantics: true,
|
||||||
@@ -85,8 +86,8 @@ class VideoCardH extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
final int cid =
|
final int cid = videoItem.cid ??
|
||||||
videoItem.cid ?? await SearchHttp.ab2c(aid: aid, bvid: bvid);
|
await SearchHttp.ab2c(aid: aid, bvid: bvid);
|
||||||
Get.toNamed(
|
Get.toNamed(
|
||||||
'/video?bvid=$bvid&cid=$cid',
|
'/video?bvid=$bvid&cid=$cid',
|
||||||
arguments: {
|
arguments: {
|
||||||
@@ -110,8 +111,8 @@ class VideoCardH extends StatelessWidget {
|
|||||||
AspectRatio(
|
AspectRatio(
|
||||||
aspectRatio: StyleString.aspectRatio,
|
aspectRatio: StyleString.aspectRatio,
|
||||||
child: LayoutBuilder(
|
child: LayoutBuilder(
|
||||||
builder:
|
builder: (BuildContext context,
|
||||||
(BuildContext context, BoxConstraints boxConstraints) {
|
BoxConstraints boxConstraints) {
|
||||||
final double maxWidth = boxConstraints.maxWidth;
|
final double maxWidth = boxConstraints.maxWidth;
|
||||||
final double maxHeight = boxConstraints.maxHeight;
|
final double maxHeight = boxConstraints.maxHeight;
|
||||||
return Stack(
|
return Stack(
|
||||||
@@ -168,7 +169,8 @@ class VideoCardH extends StatelessWidget {
|
|||||||
videoItem: videoItem,
|
videoItem: videoItem,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
]);
|
],
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget videoContent(context) {
|
Widget videoContent(context) {
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ void main() async {
|
|||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (GStorage.badCertificateCallback) {
|
if (BuildConfig.isDebug || GStorage.badCertificateCallback) {
|
||||||
HttpOverrides.global = _CustomHttpOverrides();
|
HttpOverrides.global = _CustomHttpOverrides();
|
||||||
}
|
}
|
||||||
await setupServiceLocator();
|
await setupServiceLocator();
|
||||||
|
|||||||
@@ -22,10 +22,8 @@ class IntroDetail extends StatelessWidget {
|
|||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: Theme.of(context).colorScheme.onSurface,
|
color: Theme.of(context).colorScheme.onSurface,
|
||||||
);
|
);
|
||||||
return Container(
|
return Padding(
|
||||||
color: Theme.of(context).colorScheme.surface,
|
|
||||||
padding: const EdgeInsets.only(left: 14, right: 14),
|
padding: const EdgeInsets.only(left: 14, right: 14),
|
||||||
// height: Utils.getSheetHeight(context),
|
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ abstract class ReplyController extends CommonController {
|
|||||||
dynamic mid,
|
dynamic mid,
|
||||||
}) async {
|
}) async {
|
||||||
// biliSendCommAntifraud
|
// biliSendCommAntifraud
|
||||||
if (_biliSendCommAntifraud && Platform.isAndroid) {
|
if (Platform.isAndroid && _biliSendCommAntifraud) {
|
||||||
try {
|
try {
|
||||||
List<Cookie> cookies = await Request.cookieManager.cookieJar
|
List<Cookie> cookies = await Request.cookieManager.cookieJar
|
||||||
.loadForRequest(Uri.parse(HttpString.apiBaseUrl));
|
.loadForRequest(Uri.parse(HttpString.apiBaseUrl));
|
||||||
|
|||||||
@@ -179,6 +179,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
ScaffoldState? scaffoldState = Scaffold.maybeOf(context);
|
ScaffoldState? scaffoldState = Scaffold.maybeOf(context);
|
||||||
if (scaffoldState != null) {
|
if (scaffoldState != null) {
|
||||||
scaffoldState.showBottomSheet(
|
scaffoldState.showBottomSheet(
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
(context) => MediaQuery.removePadding(
|
(context) => MediaQuery.removePadding(
|
||||||
context: context,
|
context: context,
|
||||||
removeLeft: true,
|
removeLeft: true,
|
||||||
|
|||||||
@@ -168,6 +168,7 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
|
|||||||
ScaffoldState? scaffoldState = Scaffold.maybeOf(context);
|
ScaffoldState? scaffoldState = Scaffold.maybeOf(context);
|
||||||
if (scaffoldState != null) {
|
if (scaffoldState != null) {
|
||||||
scaffoldState.showBottomSheet(
|
scaffoldState.showBottomSheet(
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
(context) => MediaQuery.removePadding(
|
(context) => MediaQuery.removePadding(
|
||||||
context: context,
|
context: context,
|
||||||
removeLeft: true,
|
removeLeft: true,
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ class MemberController extends GetxController {
|
|||||||
await Get.bottomSheet(
|
await Get.bottomSheet(
|
||||||
GroupPanel(mid: mid),
|
GroupPanel(mid: mid),
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
);
|
);
|
||||||
Get.back();
|
Get.back();
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ class _PlaySpeedPageState extends State<PlaySpeedPage> {
|
|||||||
context: context,
|
context: context,
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return Column(
|
return Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
|||||||
@@ -298,9 +298,10 @@ class VideoDetailController extends GetxController
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 稍后再看面板展开
|
// 稍后再看面板展开
|
||||||
showMediaListPanel() {
|
showMediaListPanel(context) {
|
||||||
if (mediaList.isNotEmpty) {
|
if (mediaList.isNotEmpty) {
|
||||||
childKey.currentState?.showBottomSheet(
|
childKey.currentState?.showBottomSheet(
|
||||||
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
(context) => MediaListPanel(
|
(context) => MediaListPanel(
|
||||||
mediaList: mediaList,
|
mediaList: mediaList,
|
||||||
changeMediaList: (bvid, cid, aid, cover) {
|
changeMediaList: (bvid, cid, aid, cover) {
|
||||||
@@ -1235,6 +1236,7 @@ class VideoDetailController extends GetxController
|
|||||||
childKey.currentState?.showBottomSheet(
|
childKey.currentState?.showBottomSheet(
|
||||||
enableDrag: false,
|
enableDrag: false,
|
||||||
(context) => _postPanel(),
|
(context) => _postPanel(),
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ import 'package:share_plus/share_plus.dart';
|
|||||||
import '../../../../http/search.dart';
|
import '../../../../http/search.dart';
|
||||||
import '../../../../models/model_hot_video_item.dart';
|
import '../../../../models/model_hot_video_item.dart';
|
||||||
import '../related/index.dart';
|
import '../related/index.dart';
|
||||||
import 'widgets/group_panel.dart';
|
|
||||||
|
|
||||||
class VideoIntroController extends GetxController
|
class VideoIntroController extends GetxController
|
||||||
with GetTickerProviderStateMixin {
|
with GetTickerProviderStateMixin {
|
||||||
@@ -852,17 +851,6 @@ class VideoIntroController extends GetxController
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 设置关注分组
|
|
||||||
void setFollowGroup() {
|
|
||||||
if (videoDetail.value.owner == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Get.bottomSheet(
|
|
||||||
GroupPanel(mid: videoDetail.value.owner!.mid!),
|
|
||||||
isScrollControlled: true,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// ai总结
|
// ai总结
|
||||||
Future aiConclusion() async {
|
Future aiConclusion() async {
|
||||||
SmartDialog.showLoading(msg: '正在获取AI总结');
|
SmartDialog.showLoading(msg: '正在获取AI总结');
|
||||||
|
|||||||
@@ -38,19 +38,10 @@ class _FavPanelState extends State<FavPanel> {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
child: Container(
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
borderRadius: BorderRadius.circular(18),
|
|
||||||
color: Theme.of(context).colorScheme.surface,
|
|
||||||
),
|
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
AppBar(
|
AppBar(
|
||||||
shape: const RoundedRectangleBorder(
|
backgroundColor: Colors.transparent,
|
||||||
borderRadius: BorderRadius.vertical(
|
|
||||||
top: Radius.circular(18),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
tooltip: '关闭',
|
tooltip: '关闭',
|
||||||
onPressed: Get.back,
|
onPressed: Get.back,
|
||||||
@@ -75,8 +66,8 @@ class _FavPanelState extends State<FavPanel> {
|
|||||||
),
|
),
|
||||||
label: const Text('新建收藏夹'),
|
label: const Text('新建收藏夹'),
|
||||||
style: TextButton.styleFrom(
|
style: TextButton.styleFrom(
|
||||||
padding: const EdgeInsets.symmetric(
|
padding:
|
||||||
horizontal: 18, vertical: 14),
|
const EdgeInsets.symmetric(horizontal: 18, vertical: 14),
|
||||||
visualDensity: const VisualDensity(
|
visualDensity: const VisualDensity(
|
||||||
horizontal: -2,
|
horizontal: -2,
|
||||||
vertical: -2,
|
vertical: -2,
|
||||||
@@ -87,8 +78,6 @@ class _FavPanelState extends State<FavPanel> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Material(
|
|
||||||
color: Theme.of(context).colorScheme.surface,
|
|
||||||
child: FutureBuilder(
|
child: FutureBuilder(
|
||||||
future: _futureBuilderFuture,
|
future: _futureBuilderFuture,
|
||||||
builder: (BuildContext context, AsyncSnapshot snapshot) {
|
builder: (BuildContext context, AsyncSnapshot snapshot) {
|
||||||
@@ -98,18 +87,18 @@ class _FavPanelState extends State<FavPanel> {
|
|||||||
return HttpError(
|
return HttpError(
|
||||||
isSliver: false,
|
isSliver: false,
|
||||||
callback: () => setState(() {
|
callback: () => setState(() {
|
||||||
_futureBuilderFuture =
|
_futureBuilderFuture = widget.ctr.queryVideoInFolder();
|
||||||
widget.ctr.queryVideoInFolder();
|
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Map data = snapshot.data as Map;
|
Map data = snapshot.data as Map;
|
||||||
if (data['status']) {
|
if (data['status']) {
|
||||||
return Obx(
|
return Obx(
|
||||||
() => ListView.builder(
|
() => Material(
|
||||||
|
color: Colors.transparent,
|
||||||
|
child: ListView.builder(
|
||||||
controller: widget.scrollController,
|
controller: widget.scrollController,
|
||||||
itemCount:
|
itemCount: widget.ctr.favFolderData.value.list.length,
|
||||||
widget.ctr.favFolderData.value.list.length,
|
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
return ListTile(
|
return ListTile(
|
||||||
onTap: () => widget.ctr.onChoose(
|
onTap: () => widget.ctr.onChoose(
|
||||||
@@ -118,13 +107,13 @@ class _FavPanelState extends State<FavPanel> {
|
|||||||
1,
|
1,
|
||||||
index),
|
index),
|
||||||
dense: true,
|
dense: true,
|
||||||
leading: Utils.isPublic(widget.ctr.favFolderData
|
leading: Utils.isPublic(widget
|
||||||
.value.list[index].attr)
|
.ctr.favFolderData.value.list[index].attr)
|
||||||
? const Icon(Icons.folder_outlined)
|
? const Icon(Icons.folder_outlined)
|
||||||
: const Icon(Icons.lock_outline),
|
: const Icon(Icons.lock_outline),
|
||||||
minLeadingWidth: 0,
|
minLeadingWidth: 0,
|
||||||
title: Text(widget.ctr.favFolderData.value
|
title: Text(widget
|
||||||
.list[index].title!),
|
.ctr.favFolderData.value.list[index].title!),
|
||||||
subtitle: Text(
|
subtitle: Text(
|
||||||
'${widget.ctr.favFolderData.value.list[index].mediaCount}个内容 . ${Utils.isPublicText(widget.ctr.favFolderData.value.list[index].attr)}',
|
'${widget.ctr.favFolderData.value.list[index].mediaCount}个内容 . ${Utils.isPublicText(widget.ctr.favFolderData.value.list[index].attr)}',
|
||||||
),
|
),
|
||||||
@@ -141,6 +130,7 @@ class _FavPanelState extends State<FavPanel> {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return CustomScrollView(
|
return CustomScrollView(
|
||||||
@@ -165,7 +155,6 @@ class _FavPanelState extends State<FavPanel> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
Divider(
|
Divider(
|
||||||
height: 1,
|
height: 1,
|
||||||
color: Theme.of(context).disabledColor.withOpacity(0.08),
|
color: Theme.of(context).disabledColor.withOpacity(0.08),
|
||||||
@@ -216,7 +205,6 @@ class _FavPanelState extends State<FavPanel> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,19 +77,10 @@ class _GroupPanelState extends State<GroupPanel> {
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
child: Container(
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
borderRadius: BorderRadius.circular(18),
|
|
||||||
color: Theme.of(context).colorScheme.surface,
|
|
||||||
),
|
|
||||||
child: Column(
|
child: Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
AppBar(
|
AppBar(
|
||||||
shape: const RoundedRectangleBorder(
|
backgroundColor: Colors.transparent,
|
||||||
borderRadius: BorderRadius.vertical(
|
|
||||||
top: Radius.circular(18),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
tooltip: '关闭',
|
tooltip: '关闭',
|
||||||
onPressed: Get.back,
|
onPressed: Get.back,
|
||||||
@@ -97,8 +88,6 @@ class _GroupPanelState extends State<GroupPanel> {
|
|||||||
title: const Text('设置关注分组'),
|
title: const Text('设置关注分组'),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Material(
|
|
||||||
color: Theme.of(context).colorScheme.surface,
|
|
||||||
child: FutureBuilder(
|
child: FutureBuilder(
|
||||||
future: _futureBuilderFuture,
|
future: _futureBuilderFuture,
|
||||||
builder: (BuildContext context, AsyncSnapshot snapshot) {
|
builder: (BuildContext context, AsyncSnapshot snapshot) {
|
||||||
@@ -114,7 +103,9 @@ class _GroupPanelState extends State<GroupPanel> {
|
|||||||
}
|
}
|
||||||
Map data = snapshot.data as Map;
|
Map data = snapshot.data as Map;
|
||||||
if (data['status']) {
|
if (data['status']) {
|
||||||
return ListView.builder(
|
return Material(
|
||||||
|
color: Colors.transparent,
|
||||||
|
child: ListView.builder(
|
||||||
controller: widget.scrollController,
|
controller: widget.scrollController,
|
||||||
itemCount: tagsList.length,
|
itemCount: tagsList.length,
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
@@ -147,6 +138,7 @@ class _GroupPanelState extends State<GroupPanel> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return CustomScrollView(
|
return CustomScrollView(
|
||||||
@@ -168,7 +160,6 @@ class _GroupPanelState extends State<GroupPanel> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
Divider(
|
Divider(
|
||||||
height: 1,
|
height: 1,
|
||||||
color: Theme.of(context).disabledColor.withOpacity(0.08),
|
color: Theme.of(context).disabledColor.withOpacity(0.08),
|
||||||
@@ -197,7 +188,6 @@ class _GroupPanelState extends State<GroupPanel> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,10 +19,8 @@ class IntroDetail extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Padding(
|
||||||
color: Theme.of(context).colorScheme.surface,
|
|
||||||
padding: const EdgeInsets.only(left: 14, right: 14),
|
padding: const EdgeInsets.only(left: 14, right: 14),
|
||||||
// height: Utils.getSheetHeight(context),
|
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
InkWell(
|
InkWell(
|
||||||
|
|||||||
@@ -64,24 +64,8 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Obx(
|
||||||
appBar: AppBar(
|
|
||||||
automaticallyImplyLeading: false,
|
|
||||||
toolbarHeight: 36,
|
|
||||||
actions: [
|
|
||||||
iconButton(
|
|
||||||
context: context,
|
|
||||||
onPressed: Get.back,
|
|
||||||
tooltip: '关闭',
|
|
||||||
icon: Icons.clear,
|
|
||||||
size: 28,
|
|
||||||
),
|
|
||||||
const SizedBox(width: 16),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
body: Obx(
|
|
||||||
() => _buildUserPage(_controller.userState.value),
|
() => _buildUserPage(_controller.userState.value),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,11 +74,25 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
|
|||||||
Loading() => loadingWidget,
|
Loading() => loadingWidget,
|
||||||
Success() => Column(
|
Success() => Column(
|
||||||
children: [
|
children: [
|
||||||
|
const SizedBox(height: 4),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
|
children: [
|
||||||
|
iconButton(
|
||||||
|
context: context,
|
||||||
|
onPressed: Get.back,
|
||||||
|
tooltip: '关闭',
|
||||||
|
icon: Icons.clear,
|
||||||
|
size: 32,
|
||||||
|
),
|
||||||
|
const SizedBox(width: 16),
|
||||||
|
],
|
||||||
|
),
|
||||||
_buildUserInfo(userState.response),
|
_buildUserInfo(userState.response),
|
||||||
const SizedBox(height: 5),
|
const SizedBox(height: 5),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Obx(() => _buildVideoList(_controller.loadingState.value)),
|
child: Obx(() => _buildVideoList(_controller.loadingState.value)),
|
||||||
)
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Error() => errorWidget(
|
Error() => errorWidget(
|
||||||
@@ -159,7 +157,9 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
|
|||||||
Widget _buildVideoList(LoadingState loadingState) {
|
Widget _buildVideoList(LoadingState loadingState) {
|
||||||
return switch (loadingState) {
|
return switch (loadingState) {
|
||||||
Loading() => loadingWidget,
|
Loading() => loadingWidget,
|
||||||
Success() => CustomScrollView(
|
Success() => Material(
|
||||||
|
color: Colors.transparent,
|
||||||
|
child: CustomScrollView(
|
||||||
slivers: [
|
slivers: [
|
||||||
_buildSliverHeader,
|
_buildSliverHeader,
|
||||||
SliverPadding(
|
SliverPadding(
|
||||||
@@ -200,6 +200,7 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
Error() => errorWidget(
|
Error() => errorWidget(
|
||||||
errMsg: loadingState.errMsg,
|
errMsg: loadingState.errMsg,
|
||||||
callback: _controller.onReload,
|
callback: _controller.onReload,
|
||||||
|
|||||||
@@ -1116,7 +1116,7 @@ class MorePanel extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
Color errorColor = Theme.of(context).colorScheme.error;
|
Color errorColor = Theme.of(context).colorScheme.error;
|
||||||
return Container(
|
return Padding(
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
bottom: MediaQueryData.fromView(
|
bottom: MediaQueryData.fromView(
|
||||||
WidgetsBinding.instance.platformDispatcher.views.single)
|
WidgetsBinding.instance.platformDispatcher.views.single)
|
||||||
|
|||||||
@@ -1159,7 +1159,7 @@ class ReplyItemGrpc extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Color errorColor = Theme.of(context).colorScheme.error;
|
Color errorColor = Theme.of(context).colorScheme.error;
|
||||||
return Container(
|
return Padding(
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
bottom: MediaQueryData.fromView(
|
bottom: MediaQueryData.fromView(
|
||||||
WidgetsBinding.instance.platformDispatcher.views.single)
|
WidgetsBinding.instance.platformDispatcher.views.single)
|
||||||
|
|||||||
@@ -497,6 +497,7 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel>
|
|||||||
upMid: _videoReplyReplyController.upMid,
|
upMid: _videoReplyReplyController.upMid,
|
||||||
showDialogue: () {
|
showDialogue: () {
|
||||||
_key.currentState?.showBottomSheet(
|
_key.currentState?.showBottomSheet(
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
(context) => VideoReplyReplyPanel(
|
(context) => VideoReplyReplyPanel(
|
||||||
oid: replyItem.oid.toInt(),
|
oid: replyItem.oid.toInt(),
|
||||||
rpid: replyItem.root.toInt(),
|
rpid: replyItem.root.toInt(),
|
||||||
|
|||||||
@@ -887,7 +887,9 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
if (videoDetailController.videoType ==
|
if (videoDetailController.videoType ==
|
||||||
SearchType.video &&
|
SearchType.video &&
|
||||||
videoDetailController.showRelatedVideo)
|
videoDetailController.showRelatedVideo)
|
||||||
CustomScrollView(
|
Material(
|
||||||
|
color: Colors.transparent,
|
||||||
|
child: CustomScrollView(
|
||||||
controller: _introController,
|
controller: _introController,
|
||||||
slivers: [
|
slivers: [
|
||||||
RelatedVideoPanel(
|
RelatedVideoPanel(
|
||||||
@@ -895,6 +897,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
heroTag: heroTag),
|
heroTag: heroTag),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
if (videoDetailController.showReply)
|
if (videoDetailController.showReply)
|
||||||
videoReplyPanel,
|
videoReplyPanel,
|
||||||
if (_shouldShowSeasonPanel) seasonPanel,
|
if (_shouldShowSeasonPanel) seasonPanel,
|
||||||
@@ -1502,7 +1505,9 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
);
|
);
|
||||||
|
|
||||||
Widget videoIntro([bool needRelated = true]) {
|
Widget videoIntro([bool needRelated = true]) {
|
||||||
Widget introPanel() => CustomScrollView(
|
Widget introPanel() => Material(
|
||||||
|
color: Colors.transparent,
|
||||||
|
child: CustomScrollView(
|
||||||
key: const PageStorageKey<String>('简介'),
|
key: const PageStorageKey<String>('简介'),
|
||||||
controller: needRelated ? _introController : null,
|
controller: needRelated ? _introController : null,
|
||||||
slivers: [
|
slivers: [
|
||||||
@@ -1517,7 +1522,8 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
if (needRelated && videoDetailController.showRelatedVideo) ...[
|
if (needRelated && videoDetailController.showRelatedVideo) ...[
|
||||||
SliverToBoxAdapter(
|
SliverToBoxAdapter(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(top: StyleString.safeSpace),
|
padding:
|
||||||
|
const EdgeInsets.only(top: StyleString.safeSpace),
|
||||||
child: Divider(
|
child: Divider(
|
||||||
height: 1,
|
height: 1,
|
||||||
indent: 12,
|
indent: 12,
|
||||||
@@ -1529,7 +1535,8 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
RelatedVideoPanel(key: relatedVideoPanelKey, heroTag: heroTag),
|
RelatedVideoPanel(
|
||||||
|
key: relatedVideoPanelKey, heroTag: heroTag),
|
||||||
] else
|
] else
|
||||||
SliverToBoxAdapter(
|
SliverToBoxAdapter(
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
@@ -1558,6 +1565,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
if (videoDetailController.isPlayAll) {
|
if (videoDetailController.isPlayAll) {
|
||||||
return Stack(
|
return Stack(
|
||||||
@@ -1570,7 +1578,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
child: Material(
|
child: Material(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: videoDetailController.showMediaListPanel,
|
onTap: () => videoDetailController.showMediaListPanel(context),
|
||||||
borderRadius: const BorderRadius.all(Radius.circular(14)),
|
borderRadius: const BorderRadius.all(Radius.circular(14)),
|
||||||
child: Container(
|
child: Container(
|
||||||
height: 54,
|
height: 54,
|
||||||
@@ -1745,6 +1753,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
int oid = replyItem.oid.toInt();
|
int oid = replyItem.oid.toInt();
|
||||||
int rpid = GlobalData().grpcReply ? replyItem.id.toInt() : replyItem.rpid;
|
int rpid = GlobalData().grpcReply ? replyItem.id.toInt() : replyItem.rpid;
|
||||||
videoDetailController.childKey.currentState?.showBottomSheet(
|
videoDetailController.childKey.currentState?.showBottomSheet(
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
(context) => VideoReplyReplyPanel(
|
(context) => VideoReplyReplyPanel(
|
||||||
id: id,
|
id: id,
|
||||||
oid: oid,
|
oid: oid,
|
||||||
@@ -1764,6 +1773,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
showAiBottomSheet() {
|
showAiBottomSheet() {
|
||||||
videoDetailController.childKey.currentState?.showBottomSheet(
|
videoDetailController.childKey.currentState?.showBottomSheet(
|
||||||
enableDrag: true,
|
enableDrag: true,
|
||||||
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
(context) => AiDetail(modelResult: videoIntroController.modelResult),
|
(context) => AiDetail(modelResult: videoIntroController.modelResult),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -1771,6 +1781,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
showIntroDetail(videoDetail, videoTags) {
|
showIntroDetail(videoDetail, videoTags) {
|
||||||
videoDetailController.childKey.currentState?.showBottomSheet(
|
videoDetailController.childKey.currentState?.showBottomSheet(
|
||||||
enableDrag: true,
|
enableDrag: true,
|
||||||
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
(context) => videoDetail is BangumiInfoModel
|
(context) => videoDetail is BangumiInfoModel
|
||||||
? bangumi.IntroDetail(
|
? bangumi.IntroDetail(
|
||||||
bangumiDetail: videoDetail,
|
bangumiDetail: videoDetail,
|
||||||
@@ -1814,9 +1825,16 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
if (isFullScreen) {
|
if (isFullScreen) {
|
||||||
Utils.showFSSheet(child: listSheetContent(), isFullScreen: isFullScreen);
|
Utils.showFSSheet(
|
||||||
|
child: Material(
|
||||||
|
color: Theme.of(context).colorScheme.surface,
|
||||||
|
child: listSheetContent(),
|
||||||
|
),
|
||||||
|
isFullScreen: isFullScreen,
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
videoDetailController.childKey.currentState?.showBottomSheet(
|
videoDetailController.childKey.currentState?.showBottomSheet(
|
||||||
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
(context) => listSheetContent(),
|
(context) => listSheetContent(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -2035,6 +2053,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
Utils.showFSSheet(child: listSheetContent(), isFullScreen: isFullScreen);
|
Utils.showFSSheet(child: listSheetContent(), isFullScreen: isFullScreen);
|
||||||
} else {
|
} else {
|
||||||
videoDetailController.childKey.currentState?.showBottomSheet(
|
videoDetailController.childKey.currentState?.showBottomSheet(
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
(context) => listSheetContent(),
|
(context) => listSheetContent(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -2056,6 +2075,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
|
|
||||||
void onShowMemberPage(mid) {
|
void onShowMemberPage(mid) {
|
||||||
videoDetailController.childKey.currentState?.showBottomSheet(
|
videoDetailController.childKey.currentState?.showBottomSheet(
|
||||||
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
(context) {
|
(context) {
|
||||||
return HorizontalMemberPage(
|
return HorizontalMemberPage(
|
||||||
mid: mid,
|
mid: mid,
|
||||||
|
|||||||
@@ -63,11 +63,7 @@ class _MediaListPanelState extends State<MediaListPanel> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return DecoratedBox(
|
return Column(
|
||||||
decoration: BoxDecoration(
|
|
||||||
color: Theme.of(context).colorScheme.surface,
|
|
||||||
),
|
|
||||||
child: Column(
|
|
||||||
children: [
|
children: [
|
||||||
AppBar(
|
AppBar(
|
||||||
toolbarHeight: 45,
|
toolbarHeight: 45,
|
||||||
@@ -96,8 +92,6 @@ class _MediaListPanelState extends State<MediaListPanel> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Material(
|
|
||||||
color: Theme.of(context).colorScheme.surface,
|
|
||||||
child: widget.loadPrevious != null
|
child: widget.loadPrevious != null
|
||||||
? refreshIndicator(
|
? refreshIndicator(
|
||||||
onRefresh: () async {
|
onRefresh: () async {
|
||||||
@@ -107,9 +101,7 @@ class _MediaListPanelState extends State<MediaListPanel> {
|
|||||||
)
|
)
|
||||||
: _buildList,
|
: _buildList,
|
||||||
),
|
),
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -320,6 +320,7 @@ class Utils {
|
|||||||
context: context,
|
context: context,
|
||||||
useSafeArea: true,
|
useSafeArea: true,
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
sheetAnimationStyle: AnimationStyle(curve: Curves.ease),
|
sheetAnimationStyle: AnimationStyle(curve: Curves.ease),
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return DraggableScrollableSheet(
|
return DraggableScrollableSheet(
|
||||||
@@ -701,6 +702,7 @@ class Utils {
|
|||||||
context: context,
|
context: context,
|
||||||
useSafeArea: true,
|
useSafeArea: true,
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
sheetAnimationStyle: AnimationStyle(curve: Curves.ease),
|
sheetAnimationStyle: AnimationStyle(curve: Curves.ease),
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return DraggableScrollableSheet(
|
return DraggableScrollableSheet(
|
||||||
|
|||||||
Reference in New Issue
Block a user