How do you give Hash color in Flutter?

Unfortunately, the Color class constructor in Flutter does not accept a simple hexadecimal string (like #bfeb91 in CSS). Instead, it requires an integer like 0xFFBFEB91 . So here we convert a hexadecimal string to an integer. Give this function a hexadecimal string and it will return you a Color !28 Nis 2018

Sizin İçin Seçtik  How do you change the background color of a container in flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *