You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: