Skip to content

Commit

Permalink
Add if-condition "isEnable" to the delete button.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanhoujun committed Mar 25, 2022
1 parent 142f48c commit 52506d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/widget/unified_delete_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ class UnifiedDeleteButton extends StatelessWidget {
)
),
onTap: () {
onTap?.call();
if (isEnable) {
onTap?.call();
}
},
onTapDown: (details) {
if (isEnable) {
Expand Down

0 comments on commit 52506d8

Please sign in to comment.