Flutter GoogleMaps - dynamic colouring of Custom Markers Flutter GoogleMaps - dynamic colouring of Custom Markers flutter flutter

Flutter GoogleMaps - dynamic colouring of Custom Markers


The reason why the marker doesn't change its color to either BitmapDescriptor hues is because the screen needs to be rebuilt to detect the value change on bToggle. What you can do here is call setState() on value change.