The Equity Pie

You have a great idea, a developer with the technical ability, and salesperson with experience. A Founding team in the making… time to divide the company equity. Each member brings a different set of…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Add Custom Marker Images to your Google Maps in Flutter

In this quick tutorial I demonstrate how to apply custom markers to your own Google Maps in Flutter.

If you’re like me, you want to have some level of customization when it comes to creating your own Flutter apps — and specially using common components such as Google Maps. In this particular case, I want to change the default pin that comes with Google Maps for something more custom, such as the image below:

I made this image a transparent PNG, 106x106 pixels (you can make it any size you want but it is always good to optimize it for performance, i.e. if you’re adding lots of pins on your map, performing frequent updates to locations, removing / adding pins dynamically, etc.). I felt this size was decent enough so that when displayed on the map it looked crisp enough.

My map page is defined as a StatefulWidget:

Add a comment

Related posts:

Power sector investors in a limbo over new investments in Andhra

Investors in the Indian power sector are scaling back their investment plans in Andhra Pradesh as the deadlock continues over the possibility of the state reneging on its contracts. Atleast half a…

Can Water Damage Affect Me Quickly?

Water damage restoration is a crucial service that can prevent long-term consequences and safeguard your well-being. The effects of water damage can vary depending on the severity and extent of the…

Parkour Cellphone Game

Parkour Race FreeRun Game from developer Madbox is easy to play, intuitive to learn and nifty pass the time fun! Remember the Daniel Craig Bond movie Casino Royale? Remember the foot chase in Jamaica…