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