Comments (2)
I think this is because the splash of color goes to the parent Material
. Which is behind the Container and the ListTile. Not sure the best solution, as the docs recommend not wrapping each ListTile
with its own Material
for performance reasons.
from flutter.
Container( decoration: // behind the [child] BoxDecoration( border: Border.all(), color: Colors.grey[300], ), child: ListTile( splashColor: Colors.red, onTap: () { null; }, title: Text('ListTile 2'), subtitle: Text('Color in Container: True\ncolor = Colors.grey[300]'), trailing: IconButton( onPressed: () { null; }, icon: Icon(Icons.star_border), highlightColor: Colors.red, ), ), ),
@leocirto Here, the BoxDecoration's
color
property is used in applying background color to the Container, hence for this condition, the ListTile's visual effects and also per Callum's comment above, see if these help further in your case or not.
from flutter.
Related Issues (20)
- Webview_flutter canGoBack problem in Separate Window HOT 5
- [macOS]: PathNotFoundException when building app with flavours HOT 5
- Missing Colors at Specific Zoom Levels When Using JSON Style HOT 3
- I am using flutter and serverpod for developing a webapp . it gives me an error like this: HOT 1
- Dropdowns have accessibility focus issues HOT 3
- Grey screen Errors in Release Mode HOT 3
- "flutter build web" specifying output not working since flutter upgrade to 3.22 (from 3.16) HOT 4
- Build fails with error: 'The argument type 'PageController?' can't be assigned to the parameter type 'ScrollController'' after updating to Flutter 3.22.0 HOT 1
- Numpad input issue in web build HOT 2
- new gallery benchmark throwing late initialization and potentially other errors HOT 5
- mac-3 lost external connection phone device. HOT 1
- win-10 low on disk space for Temp directory. HOT 1
- linux-51 is dead. HOT 1
- mac-10 lost external connection phone device. HOT 2
- Decide what parts of the Java embedder rendering APIs to deprecate HOT 2
- mac-8 lost external connection phone device. HOT 2
- [CP] Disable Vulkan validation layers by default. HOT 1
- Range Error (Offset) when building release with latest Beta version HOT 1
- Unable to interact with widgets behind snack bars when `insetPadding` is set in `SnackBarThemeData`. HOT 1
- `flutter update-packages` can fail silently
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter.