By default, on Desktop, btns in flutter change the Mouse Cursor when they are disabled:
We'd like to disable this behavior, or replace with a different cursor.
To override the default disabledMouseCursor for ElevatedButton
, TextButton
or OutlinedButton
, one could write:
ElevatedButton(
style: ElevatedButton.styleFrom(
disabledMouseCursor: SystemMouseCursors.basic,
),
// ...
)
See ButtonStyle class for more information.