Add NoSplash effect to TextButton styles for improved UX

This commit is contained in:
Leon Bösche
2026-01-11 04:27:18 +01:00
parent b09cdde8d3
commit f0d6d0b8e1

View File

@@ -235,6 +235,7 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
final highlightColor = const Color.fromARGB(255, 100, 200, 255);
final defaultColor = AppTheme.secondaryText;
return TextButton(
style: ButtonStyle(splashFactory: NoSplash.splashFactory),
onPressed: onTap,
child: Text(
org.name,
@@ -250,6 +251,7 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
final highlightColor = const Color.fromARGB(255, 100, 200, 255);
final defaultColor = AppTheme.secondaryText;
return TextButton(
style: ButtonStyle(splashFactory: NoSplash.splashFactory),
onPressed: onTap,
child: Text(
'Personal',
@@ -264,6 +266,7 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
Widget _buildAddButton(VoidCallback onTap) {
final defaultColor = AppTheme.secondaryText;
return TextButton(
style: ButtonStyle(splashFactory: NoSplash.splashFactory),
onPressed: onTap,
child: Text('+ Add Organization', style: TextStyle(color: defaultColor)),
);