mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: disable onTap when quick action button is disabled (#4713)
This commit is contained in:
parent
746f0817bc
commit
acd75befbc
@ -25,7 +25,11 @@ class MobileQuickActionButton extends StatelessWidget {
|
|||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 4),
|
padding: const EdgeInsets.symmetric(horizontal: 4),
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: onTap,
|
onTap: () {
|
||||||
|
if (enable) {
|
||||||
|
onTap();
|
||||||
|
}
|
||||||
|
},
|
||||||
borderRadius: BorderRadius.circular(12),
|
borderRadius: BorderRadius.circular(12),
|
||||||
overlayColor:
|
overlayColor:
|
||||||
enable ? null : const MaterialStatePropertyAll(Colors.transparent),
|
enable ? null : const MaterialStatePropertyAll(Colors.transparent),
|
||||||
|
Loading…
Reference in New Issue
Block a user