feat: 快速收藏

This commit is contained in:
guozhigq
2023-08-30 11:04:01 +08:00
parent 108c37f0d7
commit b485399517
5 changed files with 83 additions and 11 deletions

View File

@ -8,6 +8,7 @@ class ActionRowItem extends StatelessWidget {
final bool? loadingStatus;
final String? text;
final bool selectStatus;
final Function? onLongPress;
const ActionRowItem({
Key? key,
@ -17,6 +18,7 @@ class ActionRowItem extends StatelessWidget {
this.loadingStatus,
this.text,
this.selectStatus = false,
this.onLongPress,
}) : super(key: key);
@override
@ -32,6 +34,12 @@ class ActionRowItem extends StatelessWidget {
feedBack(),
onTap!(),
},
onLongPress: () {
feedBack();
if (onLongPress != null) {
onLongPress!();
}
},
child: Padding(
padding: const EdgeInsets.fromLTRB(15, 7, 15, 7),
child: Row(