ColorPickerActionButtons: dialogActionButtons are not showing up in the bottom #57
-
Hello, i have the following code and want to display the dialogActionButtons in the bottom of the dialog. Unfortunately, they will not appear.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @bettyballin, without seeing a bit more of the use case it is difficult the say for 100% sure what the issue is. However, based on the included code, it looks to me like you are using the It is of course a perfectly fine use case, to use your own custom dialog design. However, If you want to use your own dialog you will have to make your own dialog buttons and correct actions on them as a part of your own custom dialog. In the FlexColorPicker config class In the config class For more info on the built-in ways of using the If you just want to quickly select and pick a color, the latter one is easier to use. If you also want to interactively change colors (like theme colors etc) in the running app, while the dialog is open and operated, then you need to use the first a bit more complex variant. As mentioned though, you can totally make and build your own dialog, you just can't use features related to built-in dialogs when doing so. Of course nothing prevents you from re-using some of the properties in FlexColorPicker and its config classes, to control availability and visibility of same features in your own custom dialog(s), but you will have to code in that behavior then. The built-in dialog in FlexColorPicker does offer quite a lot of configuration options, so in most/many cases you might not need to make a custom dialog. In case you did not try that already, you might want to test it too. In addition to the tutorial the live web demo and its package bundled code also offers more insights into usage and configuration options of the Hope this explanation helps! 😃 |
Beta Was this translation helpful? Give feedback.
-
Closing this question since there has not been any follow-up question or activity since the above answer. If you feel that answer is not sufficient, fell free to open a new follow-up question. |
Beta Was this translation helpful? Give feedback.
Hi @bettyballin, without seeing a bit more of the use case it is difficult the say for 100% sure what the issue is. However, based on the included code, it looks to me like you are using the
ColorPicker
Widget in your own custom dialog.It is of course a perfectly fine use case, to use your own custom dialog design. However,
FlexColorPicker
and its properties cannot control or show bottom buttons in a dialog (AlertDialog) that is not a dialog it creates and controls itself.If you want to use your own dialog you will have to make your own dialog buttons and correct actions on them as a part of your own custom dialog.
In the FlexColorPicker config class
ColorPickerActionButtons
theokButton
…