How to disable the default Widget splash effect in Flutter

Many Material widgets such as InkWell, ElevatedButton, and ListTile show a splash effect when selected. Here's how to disable this. https://codewithandrea.com/tips/disable-widget-splash-effect-flutter/

Created 3y | Feb 19, 2021, 6:20:46 PM


Login to add comment

Other posts in this group

Testing Functions That Throw

When writing test expectations for functions that throw, we need a bit careful. To avoid surprises, always pass a closure inside the expect method. https://codewithandrea.com/tips/testing-functions-th

Apr 25, 2024, 10:30:12 AM | Code with Andrea
April 2024: WASM I/O Updates, Theme Extensions, Signals 5.0, iOS Privacy Manifest Tools

Also included in this edition: UI Testing with Maestro, Flutter Custom Carousel, codegen with GenQ, Shorebird 1.0, and the latest from Code with Andrea. https://codewithandrea.com/newsletter/april-202

Apr 25, 2024, 10:30:12 AM | Code with Andrea
Flutter Tip: Use Composition Aggressively

Create small, reusable widgets that are easier to reason about, and banish the massive build method from existence! https://codewithandrea.com/tips/use-composition-aggressively/

Apr 23, 2024, 5:30:08 PM | Code with Andrea
Add Fixed Spacing with the Gap Widget

How to easily add fixed spacing inside Flex widgets such as Columns and Rows or scrolling views. https://codewithandrea.com/tips/gap-widget/

Apr 22, 2024, 11:50:07 AM | Code with Andrea
Add Fixed Spacing with the Gap Widget

How to easily add fixed spacing inside Flex widgets such as Columns and Rows or scrolling views. https://codewithandrea.com/tips/running-tests-with-github-actions/

Apr 22, 2024, 11:50:07 AM | Code with Andrea
Flutter Pagination with Riverpod: The Ultimate Guide

A complete guide to implementing pagination with Riverpod, covering: infinite scrolling, loading and error states, search UI, caching, and debouncing. https://codewithandrea.com/articles/flutter-river

Apr 12, 2024, 5:20:02 PM | Code with Andrea
How to Build and Deploy a Dart Shelf App on Globe.dev

Learn how to build and deploy a Dart Shelf App that taps into the OpenAI API without exposing the API key in your Flutter client. https://codewithandrea.com/articles/build-deploy-dart-shelf-app-globe/

Mar 22, 2024, 2:30:05 PM | Code with Andrea