|
@@ -270,13 +270,18 @@ class _SelectHistoryPageState extends ConsumerState<SelectHistoryPage> {
|
270
|
270
|
|
271
|
271
|
///点击
|
272
|
272
|
void _onTap(BuildContext context, HistoryItemInfo info) {
|
|
273
|
+ if(info.isSelected)
|
|
274
|
+ {
|
|
275
|
+ ref.read(historyListProvider.notifier).select(info, false);
|
|
276
|
+ return;
|
|
277
|
+ }
|
273
|
278
|
if (widget.isMultiSelect) {
|
274
|
279
|
if (widget.maxCount > 0 &&
|
275
|
280
|
ref.read(historySelectedCountProvider) >= widget.maxCount) {
|
276
|
281
|
showToast(text: getS().maxSelectCountXx(widget.maxCount));
|
277
|
282
|
return;
|
278
|
283
|
}
|
279
|
|
- ref.read(historyListProvider.notifier).select(info, !info.isSelected);
|
|
284
|
+ ref.read(historyListProvider.notifier).select(info, true);
|
280
|
285
|
return;
|
281
|
286
|
}
|
282
|
287
|
_onSelected(context, [info]);
|