mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: size of hitbox in app bar button (#4575)
This commit is contained in:
parent
ce261c9128
commit
4f0379bdd7
@ -144,8 +144,6 @@ class AppBarButton extends StatelessWidget {
|
||||
required this.child,
|
||||
});
|
||||
|
||||
static const defaultWidth = 40.0;
|
||||
|
||||
final VoidCallback onTap;
|
||||
final Widget child;
|
||||
final bool isActionButton;
|
||||
@ -153,6 +151,7 @@ class AppBarButton extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
behavior: HitTestBehavior.opaque,
|
||||
onTap: onTap,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(
|
||||
|
Loading…
Reference in New Issue
Block a user