mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: add missing getback
This commit is contained in:
@@ -167,6 +167,7 @@ class MorePanel extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
leading: const Icon(Icons.share_outlined, size: 19),
|
leading: const Icon(Icons.share_outlined, size: 19),
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
|
Get.back();
|
||||||
var result = await Share.share(
|
var result = await Share.share(
|
||||||
'${HttpString.baseUrl}/dynamic/${item.idStr} UP主: ${item.modules.moduleAuthor.name}')
|
'${HttpString.baseUrl}/dynamic/${item.idStr} UP主: ${item.modules.moduleAuthor.name}')
|
||||||
.whenComplete(() {});
|
.whenComplete(() {});
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class SearchVideoPanel extends StatelessWidget {
|
|||||||
child: IconButton(
|
child: IconButton(
|
||||||
tooltip: '筛选',
|
tooltip: '筛选',
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
padding: MaterialStateProperty.all(EdgeInsets.zero),
|
padding: WidgetStateProperty.all(EdgeInsets.zero),
|
||||||
),
|
),
|
||||||
onPressed: () => controller.onShowFilterDialog(context, ctr),
|
onPressed: () => controller.onShowFilterDialog(context, ctr),
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
@@ -178,10 +178,11 @@ class VideoPanelController extends GetxController {
|
|||||||
super.onInit();
|
super.onInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
onShowFilterDialog(BuildContext context, SearchPanelController searchPanelCtr) {
|
onShowFilterDialog(
|
||||||
|
BuildContext context, SearchPanelController searchPanelCtr) {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
TextStyle textStyle = Theme.of(context).textTheme.titleMedium!;
|
TextStyle textStyle = Theme.of(context).textTheme.titleMedium!;
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
title: const Text('时长筛选'),
|
title: const Text('时长筛选'),
|
||||||
@@ -197,6 +198,7 @@ class VideoPanelController extends GetxController {
|
|||||||
title: Text(i['label'], style: textStyle),
|
title: Text(i['label'], style: textStyle),
|
||||||
groupValue: currentTimeFilterval.value,
|
groupValue: currentTimeFilterval.value,
|
||||||
onChanged: (value) async {
|
onChanged: (value) async {
|
||||||
|
Get.back();
|
||||||
currentTimeFilterval.value = value!;
|
currentTimeFilterval.value = value!;
|
||||||
setState(() {});
|
setState(() {});
|
||||||
SmartDialog.dismiss();
|
SmartDialog.dismiss();
|
||||||
|
|||||||
Reference in New Issue
Block a user