Provide a PreferenceButton which has an onPress()
A preference button that allows performing a custom action.
This can be used for actions like 'clear cache', 'show a custom widget' or 'open an external link' like play store page, etc.
For example, I have tried to implement showing a custom widget by using the PreferencePageLink and PreferencePage widgets. But when I try to pass a container with a centered button, the container does not take full height, However, the width of the container seems to be matching the parent.
I have attached screenshots for reference.
The White background image is from the homepage of the app and the other with the Blue background is from a PreferenceLink and the same homepage widget is used inside the PreferencePage to demonstrate the issue.
Edited by Harshvardhan Joshi