mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-28 22:35:54 +08:00
opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -35,7 +35,7 @@ class FavNoteController
|
||||
}
|
||||
|
||||
Future<void> onRemove() async {
|
||||
List<FavNoteModel> dataList = (loadingState.value as Success).response;
|
||||
List<FavNoteModel> dataList = loadingState.value.data!;
|
||||
Set<FavNoteModel> removeList =
|
||||
dataList.where((item) => item.checked == true).toSet();
|
||||
final res = await VideoHttp.delNote(
|
||||
|
||||
@@ -76,7 +76,7 @@ class _FavNotePageState extends State<FavNotePage>
|
||||
// TextButton(
|
||||
// style: TextButton.styleFrom(
|
||||
// foregroundColor: theme.colorScheme.onSurfaceVariant,
|
||||
// visualDensity: const VisualDensity(horizontal: -2, vertical: -2),
|
||||
// visualDensity: VisualDensity.compact,
|
||||
// tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||
// ),
|
||||
// onPressed: () async {
|
||||
@@ -85,10 +85,8 @@ class _FavNotePageState extends State<FavNotePage>
|
||||
// if (favNoteController.enableMultiSelect.value) {
|
||||
// favNoteController.onDisable();
|
||||
// } else {
|
||||
// if (favNoteController.loadingState.value is Success &&
|
||||
// ((favNoteController.loadingState.value as Success)
|
||||
// .response as List?)
|
||||
// ?.isNotEmpty ==
|
||||
// if (favNoteController.loadingState.value.isSuccess &&
|
||||
// favNoteController.loadingState.value.data?.isNotEmpty ==
|
||||
// true) {
|
||||
// favNoteController.enableMultiSelect.value = true;
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user