fix: size of hitbox in app bar button (#4575)

This commit is contained in:
Richard Shiue 2024-02-01 20:53:21 +08:00 committed by GitHub
parent ce261c9128
commit 4f0379bdd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(