Issue
hello I search change the color of the mapview pluggin for flutter.
Here is the link https://github.com/apptreesoftware/flutter_google_map_view
If I understand, the plugin call android and ios native code to create the map. I search on the kotlin code of android but I didn't see any color attribut to change the appbar color. If someone know how to add simple ios android code in the pluggin to change the color it will be perfect. thank you
Solution
Go to your styles.xml file at res/values and add the following slyle:
<style name="MapViewTheme" parent="@style/Theme.AppCompat">
<item name="colorPrimary">#008000</item>
</style>
and refer to this style on your manifest, like this:
<activity android:name="com.apptreesoftware.mapview.MapActivity" android:theme="@style/MapViewTheme"/>
On the example above I changed the color to green (#008000). Change this value for your desired color.
Answered By - Drugo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.