mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
Compare commits
5 Commits
f825f87dc1
...
b8cae015d7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b8cae015d7 | ||
|
|
3b09534320 | ||
|
|
702cf988d3 | ||
|
|
5586d12b1f | ||
|
|
4683939364 |
@@ -311,45 +311,41 @@ class _DynamicSliverAppBarState extends State<DynamicSliverAppBar> {
|
||||
final double effectiveCollapsedHeight =
|
||||
topPadding + kToolbarHeight + bottomHeight + 1;
|
||||
|
||||
return MediaQuery.removePadding(
|
||||
context: context,
|
||||
removeBottom: true,
|
||||
child: SliverPinnedHeader(
|
||||
onPerformLayout: widget.onPerformLayout,
|
||||
delegate: _SliverAppBarDelegate(
|
||||
leading: widget.leading,
|
||||
automaticallyImplyLeading: widget.automaticallyImplyLeading,
|
||||
title: widget.title,
|
||||
actions: widget.actions,
|
||||
automaticallyImplyActions: widget.automaticallyImplyActions,
|
||||
flexibleSpace: widget.flexibleSpace,
|
||||
bottom: widget.bottom,
|
||||
elevation: widget.elevation,
|
||||
scrolledUnderElevation: widget.scrolledUnderElevation,
|
||||
shadowColor: widget.shadowColor,
|
||||
surfaceTintColor: widget.surfaceTintColor,
|
||||
forceElevated: widget.forceElevated,
|
||||
backgroundColor: widget.backgroundColor,
|
||||
foregroundColor: widget.foregroundColor,
|
||||
iconTheme: widget.iconTheme,
|
||||
actionsIconTheme: widget.actionsIconTheme,
|
||||
primary: widget.primary,
|
||||
centerTitle: widget.centerTitle,
|
||||
excludeHeaderSemantics: widget.excludeHeaderSemantics,
|
||||
titleSpacing: widget.titleSpacing,
|
||||
collapsedHeight: effectiveCollapsedHeight,
|
||||
topPadding: topPadding,
|
||||
shape: widget.shape,
|
||||
toolbarHeight: kToolbarHeight,
|
||||
leadingWidth: widget.leadingWidth,
|
||||
toolbarTextStyle: widget.toolbarTextStyle,
|
||||
titleTextStyle: widget.titleTextStyle,
|
||||
systemOverlayStyle: widget.systemOverlayStyle,
|
||||
forceMaterialTransparency: widget.forceMaterialTransparency,
|
||||
useDefaultSemanticsOrder: widget.useDefaultSemanticsOrder,
|
||||
clipBehavior: widget.clipBehavior,
|
||||
actionsPadding: widget.actionsPadding,
|
||||
),
|
||||
return SliverPinnedHeader(
|
||||
onPerformLayout: widget.onPerformLayout,
|
||||
delegate: _SliverAppBarDelegate(
|
||||
leading: widget.leading,
|
||||
automaticallyImplyLeading: widget.automaticallyImplyLeading,
|
||||
title: widget.title,
|
||||
actions: widget.actions,
|
||||
automaticallyImplyActions: widget.automaticallyImplyActions,
|
||||
flexibleSpace: widget.flexibleSpace,
|
||||
bottom: widget.bottom,
|
||||
elevation: widget.elevation,
|
||||
scrolledUnderElevation: widget.scrolledUnderElevation,
|
||||
shadowColor: widget.shadowColor,
|
||||
surfaceTintColor: widget.surfaceTintColor,
|
||||
forceElevated: widget.forceElevated,
|
||||
backgroundColor: widget.backgroundColor,
|
||||
foregroundColor: widget.foregroundColor,
|
||||
iconTheme: widget.iconTheme,
|
||||
actionsIconTheme: widget.actionsIconTheme,
|
||||
primary: widget.primary,
|
||||
centerTitle: widget.centerTitle,
|
||||
excludeHeaderSemantics: widget.excludeHeaderSemantics,
|
||||
titleSpacing: widget.titleSpacing,
|
||||
collapsedHeight: effectiveCollapsedHeight,
|
||||
topPadding: topPadding,
|
||||
shape: widget.shape,
|
||||
toolbarHeight: kToolbarHeight,
|
||||
leadingWidth: widget.leadingWidth,
|
||||
toolbarTextStyle: widget.toolbarTextStyle,
|
||||
titleTextStyle: widget.titleTextStyle,
|
||||
systemOverlayStyle: widget.systemOverlayStyle,
|
||||
forceMaterialTransparency: widget.forceMaterialTransparency,
|
||||
useDefaultSemanticsOrder: widget.useDefaultSemanticsOrder,
|
||||
clipBehavior: widget.clipBehavior,
|
||||
actionsPadding: widget.actionsPadding,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -432,16 +432,18 @@ class LiveRoomController extends GetxController {
|
||||
}
|
||||
|
||||
void addDm(dynamic msg, [DanmakuContentItem<DanmakuExtra>? item]) {
|
||||
messages.add(msg);
|
||||
|
||||
if (plPlayerController.showDanmaku) {
|
||||
if (item != null) {
|
||||
danmakuController?.addDanmaku(item);
|
||||
}
|
||||
if (autoScroll && !disableAutoScroll.value) {
|
||||
messages.add(msg);
|
||||
scrollToBottom();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
messages.addOnly(msg);
|
||||
}
|
||||
|
||||
@pragma('vm:notify-debugger-on-exception')
|
||||
|
||||
@@ -27,7 +27,8 @@ class _MyReplyState extends State<MyReply> with DynMixin {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_replies = GStorage.reply!.values.map(ReplyInfo.fromBuffer).toList();
|
||||
_replies = GStorage.reply!.values.map(ReplyInfo.fromBuffer).toList()
|
||||
..sort((a, b) => b.ctime.compareTo(a.ctime)); // rpid not aligned
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -770,7 +770,7 @@ void _showDownPathDialog(BuildContext context, VoidCallback setState) {
|
||||
ListTile(
|
||||
onTap: () async {
|
||||
Get.back();
|
||||
final path = await FilePicker.platform.getDirectoryPath();
|
||||
final path = await FilePicker.getDirectoryPath();
|
||||
if (path == null || path == downloadPath) return;
|
||||
downloadPath = path;
|
||||
setState();
|
||||
|
||||
@@ -667,7 +667,7 @@ class HeaderControlState extends State<HeaderControl>
|
||||
onTap: () async {
|
||||
Get.back();
|
||||
try {
|
||||
final result = await FilePicker.platform.pickFiles();
|
||||
final result = await FilePicker.pickFiles();
|
||||
if (result != null) {
|
||||
final file = result.files.single;
|
||||
final path = file.path;
|
||||
|
||||
@@ -311,7 +311,7 @@ abstract final class ImageUtils {
|
||||
}
|
||||
} else {
|
||||
SmartDialog.dismiss();
|
||||
final savePath = await FilePicker.platform.saveFile(
|
||||
final savePath = await FilePicker.saveFile(
|
||||
type: FileType.image,
|
||||
fileName: fileName,
|
||||
);
|
||||
@@ -348,7 +348,7 @@ abstract final class ImageUtils {
|
||||
);
|
||||
if (del) file.tryDel();
|
||||
} else {
|
||||
final savePath = await FilePicker.platform.saveFile(
|
||||
final savePath = await FilePicker.saveFile(
|
||||
type: type,
|
||||
fileName: fileName,
|
||||
);
|
||||
|
||||
@@ -43,7 +43,7 @@ abstract final class Utils {
|
||||
FileType type = FileType.custom,
|
||||
}) async {
|
||||
try {
|
||||
final path = await FilePicker.platform.saveFile(
|
||||
final path = await FilePicker.saveFile(
|
||||
allowedExtensions: allowedExtensions,
|
||||
type: type,
|
||||
fileName: name,
|
||||
|
||||
23
pubspec.lock
23
pubspec.lock
@@ -529,11 +529,11 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: "."
|
||||
ref: "v10.3.10"
|
||||
resolved-ref: fd8afd89260436b63b9d41e150b4eb3c806cc8fd
|
||||
ref: mod
|
||||
resolved-ref: "11ef8f872482b31d570787e60c813e565dcfd011"
|
||||
url: "https://github.com/bggRGjQaUbCoE/flutter_file_picker.git"
|
||||
source: git
|
||||
version: "10.3.10"
|
||||
version: "11.0.0"
|
||||
file_selector_linux:
|
||||
dependency: transitive
|
||||
description:
|
||||
@@ -740,11 +740,12 @@ packages:
|
||||
flutter_smart_dialog:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: flutter_smart_dialog
|
||||
sha256: "0852df132cb03fd8fc5144eb404c31eb7eb50c22aecb1cc2504f2f598090d756"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "4.9.8+9"
|
||||
path: "."
|
||||
ref: main
|
||||
resolved-ref: "0d839994ecbf0e33ecd12a116a37b715b68a27ac"
|
||||
url: "https://github.com/bggRGjQaUbCoE/flutter_smart_dialog.git"
|
||||
source: git
|
||||
version: "5.0.0"
|
||||
flutter_sortable_wrap:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
@@ -801,7 +802,7 @@ packages:
|
||||
description:
|
||||
path: "."
|
||||
ref: "version_4.7.2"
|
||||
resolved-ref: "4e5dbc40d93c4deca7dfec9457598d9cc68f8f33"
|
||||
resolved-ref: "81b8a71982f89b46fa868b315cd71ff6a6ddf895"
|
||||
url: "https://github.com/bggRGjQaUbCoE/getx.git"
|
||||
source: git
|
||||
version: "4.7.2"
|
||||
@@ -1685,10 +1686,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: sqflite_android
|
||||
sha256: ecd684501ebc2ae9a83536e8b15731642b9570dc8623e0073d227d0ee2bfea88
|
||||
sha256: "881e28efdcc9950fd8e9bb42713dcf1103e62a2e7168f23c9338d82db13dec40"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.4.2+2"
|
||||
version: "2.4.2+3"
|
||||
sqflite_common:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
||||
@@ -98,7 +98,10 @@ dependencies:
|
||||
url: https://github.com/bggRGjQaUbCoE/material_design_icons_flutter.git
|
||||
ref: const
|
||||
# toast
|
||||
flutter_smart_dialog: ^4.9.8+5
|
||||
flutter_smart_dialog:
|
||||
git:
|
||||
url: https://github.com/bggRGjQaUbCoE/flutter_smart_dialog.git
|
||||
ref: main
|
||||
# 下滑关闭
|
||||
# dismissible_page: ^1.0.2
|
||||
# custom_sliding_segmented_control: ^1.8.4
|
||||
@@ -218,7 +221,7 @@ dependencies:
|
||||
file_picker:
|
||||
git:
|
||||
url: https://github.com/bggRGjQaUbCoE/flutter_file_picker.git
|
||||
ref: v10.3.10
|
||||
ref: mod
|
||||
super_sliver_list:
|
||||
git:
|
||||
url: https://github.com/bggRGjQaUbCoE/super_sliver_list.git
|
||||
|
||||
Reference in New Issue
Block a user