mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-11-16 02:17:30 +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,
|
required this.child,
|
||||||
});
|
});
|
||||||
|
|
||||||
static const defaultWidth = 40.0;
|
|
||||||
|
|
||||||
final VoidCallback onTap;
|
final VoidCallback onTap;
|
||||||
final Widget child;
|
final Widget child;
|
||||||
final bool isActionButton;
|
final bool isActionButton;
|
||||||
@ -153,6 +151,7 @@ class AppBarButton extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
|
behavior: HitTestBehavior.opaque,
|
||||||
onTap: onTap,
|
onTap: onTap,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user