How do I add shadow to TextField in flutter?

For changing the shadow color you use the shadowColor property of the material. Which takes the Color object as an input. For adding a drop shadow to flutter TextField or TextFormField you can use the Material widget. Just wrap TextField or TextFormField with Material widget and set elevation and shadow color .

Sizin İçin Seçtik  Tesla full şarj kaç saat sürer?

Leave a Reply

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