fix: popup menu item opacity

This commit is contained in:
Kingkor Roy Tirtho 2024-06-09 09:56:29 +06:00
parent 7816cb8068
commit d115e57058
2 changed files with 7 additions and 1 deletions

View File

@ -226,8 +226,11 @@ class _AdaptivePopSheetListItem<T> extends StatelessWidget {
}, },
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8), padding: const EdgeInsets.symmetric(horizontal: 8),
child: IconTheme.merge(
data: const IconThemeData(opacity: 1),
child: IgnorePointer(child: item), child: IgnorePointer(child: item),
), ),
),
); );
} }
} }

View File

@ -48,6 +48,9 @@ ThemeData theme(Color seed, Brightness brightness, bool isAmoled) {
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(15)), shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(15)),
color: scheme.surface, color: scheme.surface,
elevation: 4, elevation: 4,
labelTextStyle: MaterialStatePropertyAll(
TextStyle(color: scheme.onSurface),
),
), ),
snackBarTheme: SnackBarThemeData( snackBarTheme: SnackBarThemeData(
behavior: SnackBarBehavior.floating, behavior: SnackBarBehavior.floating,