From 2d47100f5fbca6cfc3957865ca3bcfe5249b169d Mon Sep 17 00:00:00 2001 From: Reza Farjam Date: Fri, 6 Oct 2023 19:14:25 +0330 Subject: [PATCH] Updated tapTargetSize for buttons --- lib/app/themes.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/app/themes.dart b/lib/app/themes.dart index f633c2f..351dfa4 100644 --- a/lib/app/themes.dart +++ b/lib/app/themes.dart @@ -106,6 +106,7 @@ ThemeData _basicThemeData({ hoverColor: Colors.transparent, highlightColor: Colors.transparent, dividerColor: Colors.transparent, + visualDensity: VisualDensity.standard, colorScheme: ColorScheme( brightness: brightness, primary: primaryColor, @@ -219,6 +220,7 @@ ThemeData _basicThemeData({ ), ), visualDensity: VisualDensity.standard, + tapTargetSize: MaterialTapTargetSize.shrinkWrap, shape: const MaterialStatePropertyAll( RoundedRectangleBorder(borderRadius: BorderRadius.zero), ), @@ -248,6 +250,7 @@ ThemeData _basicThemeData({ ), ), visualDensity: VisualDensity.standard, + tapTargetSize: MaterialTapTargetSize.shrinkWrap, shape: const MaterialStatePropertyAll( RoundedRectangleBorder(borderRadius: BorderRadius.zero), ), @@ -263,6 +266,7 @@ ThemeData _basicThemeData({ minimumSize: const MaterialStatePropertyAll(Size.zero), padding: const MaterialStatePropertyAll(EdgeInsets.zero), visualDensity: VisualDensity.standard, + tapTargetSize: MaterialTapTargetSize.shrinkWrap, ), ), tooltipTheme: TooltipThemeData(