Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The disabled color is not applied and does not work in version 3.0.1. #5

Open
reetviksuthar2000 opened this issue Aug 29, 2024 · 0 comments

Comments

@reetviksuthar2000
Copy link

reetviksuthar2000 commented Aug 29, 2024

Hello @everyone,

I’m having a small issue with the RoundedLoadingButton. I’ve set it up so that the button should be disabled when isDisabled is true. However, the disabledColor property doesn't seem to be working as expected when the button is disabled.

I've tried various solutions, but nothing seems to fix the problem. Any suggestions or help would be greatly appreciated.

-here is my code

RoundedLoadingButton(
controller: _btnController,
onPressed: isDisabled ? null : () {},
color: Colors.blue,
disabledColor: Colors.grey,
successColor: Colors.green,
errorColor: Colors.red,
height: 50,
width: 300,
borderRadius: 30,
duration: Duration(milliseconds: 500),
resetAfterDuration: true,
resetDuration: Duration(seconds: 10),
child:
const Text('Submit', style: TextStyle(color: Colors.white)),
),
Here is an image reference showing that the button has its default transparent color applied when it is disabled.
tempFileForShare_20240830-104106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant