I am having trouble replicating a normal settings menu in Flutter. I am using an InkWell to try to create the splash effect that normally occurs when you tap on a settings option. The problem is that the splash effect appears way too fast compared to how it normally is. Basically, I just want to slow down the InkWell.
相关问题
- Flutter : Prepare list data from http request
- How to schedule an alarm on specific time in Flutt
- MappedListIterable is not a SubType
- 'firebase_messaging/FirebaseMessagingPlugin.h&
- What is the difference between generics and dynami
相关文章
- Observatory server failed to start - Fails to crea
- Flutter error retrieving device properties for ro.
- Adding Shadows at the bottom of a container in flu
- Flutter. Check if a file exists before loading it
- Flutter - http.get fails on macos build target: Co
- Receive share file intents with Flutter
- Do stateless widgets dispose on their own?
- How to clean your build with Flutter RP2 in Androi
It's possible to create what you wanted but it requires a custom
splashFactory
underInkWell
class.As you see in the variables below, these are meant to be private values and they are not open to modification within classes.
To answer your question, yes you can do it. I just copied and pasted everything from the source code and change the animation values. After the code below just use it in
splashFactory
.If you would like a slower ripple effect, then you have to change
splashFactory
property in yourMaterialApp
theme fromInkSplash.splashFactory
(default) toInkRipple.splashFactory
. InkRipple's splash looks more like native.