Add NoSplash effect to TextButton styles for improved UX
This commit is contained in:
@@ -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)),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user