Make MouseRegion Cursor Dynamic Based on State Variable

Widgets & Design

The MouseRegion widget has a "Mouse Cursor" option, but it's currently limited to a single static selection (e.g., click, forbidden, etc.). I’m working on a use case where I’d like the mouse cursor to change dynamically based on a state variable. For example:

  • If a state variable is true, the cursor should be click.

  • If it's disabled, the cursor should change to forbidden or basic.

What have you tried so far?
  • Tried duplicating widgets with different MouseRegion settings and toggling visibility, but it’s inefficient and clunky.

  • Searched the FlutterFlow docs and community, but haven’t found anything about making the cursor type reactive to state.

Did you check FlutterFlow's Documentation for this topic?
Yes
1