From e9f48fb59eb05c61d56b9c031f20d89338f15f5d Mon Sep 17 00:00:00 2001 From: Adrian Cotfas Date: Fri, 10 Apr 2026 12:25:43 +0300 Subject: [PATCH] docs: update pressable.md after adding PlatformColor and alpha support --- docs/pressable.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/pressable.md b/docs/pressable.md index 590c77db974..c8dc0f814bb 100644 --- a/docs/pressable.md +++ b/docs/pressable.md @@ -122,7 +122,7 @@ If true, doesn't play Android system sound on press. ### `android_ripple`
Android
-Enables the Android ripple effect and configures its properties. +Enables the Android ripple effect and configures its properties. The `color` field accepts both plain colors and [`PlatformColor`](platformcolor) values, so you can reference theme attributes like `?attr/colorAccent`. When a `PlatformColor` is used, the ripple is automatically updated when the system configuration changes (for example, when switching between light and dark mode). | Type | | -------------------------------------- | @@ -260,9 +260,10 @@ Ripple effect configuration for the `android_ripple` property. **Properties:** -| Name | Type | Required | Description | -| ---------- | --------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| color | [color](colors) | No | Defines the color of the ripple effect. | -| borderless | boolean | No | Defines if ripple effect should not include border. | -| radius | number | No | Defines the radius of the ripple effect. | -| foreground | boolean | No | Set to true to add the ripple effect to the foreground of the view, instead of the background. This is useful if one of your child views has a background of its own, or you're e.g. displaying images, and you don't want the ripple to be covered by them. | +| Name | Type | Required | Description | +| ---------- | ----------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| color | [color](colors) or [PlatformColor](platformcolor) | No | Defines the color of the ripple effect. | +| borderless | boolean | No | Defines if ripple effect should not include border. | +| radius | number | No | Defines the radius of the ripple effect. | +| foreground | boolean | No | Set to true to add the ripple effect to the foreground of the view, instead of the background. This is useful if one of your child views has a background of its own, or you're e.g. displaying images, and you don't want the ripple to be covered by them. | +| alpha | number | No | Controls the opacity of the ripple. Accepts a value between `0.0` (fully transparent) and `1.0` (fully opaque). The value is applied on top of any alpha already present in the color. |