-
-
Save sixtusagbo/fbb18c91994f2b041bc81cf2f8629dff to your computer and use it in GitHub Desktop.
Disable Material splash through theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Disabling Material splash effects globally | |
| ThemeData( | |
| useMaterial3: true, | |
| // This removes the ink ripple effect | |
| splashFactory: NoSplash.splashFactory, | |
| // This removes the highlight effect (the solid color change on press) | |
| highlightColor: Colors.transparent, | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment