Skip to content

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

@reetviksuthar2000

Description

@reetviksuthar2000

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions