Sanjib Sinha posted: " To manage theme in flutter we can adopt many ways. However, before getting accustomed with some tips and tricks, we need to understand the concept. A theme in Flutter is an integral part of the user interface. Moreover, it is an extended part of M"
To manage theme in flutter we can adopt many ways. However, before getting accustomed with some tips and tricks, we need to understand the concept.
A theme in Flutter is an integral part of the user interface. Moreover, it is an extended part of Material design.
In this article, we'll try to understand how we can use theme to design color, and font to make our flutter app more visually good-looking.
Firstly, we can define our global theme in the MaterialApp widget.
In our previous articles, we've seen how we can influence the child widgets through MaterialApp. We could've done that because MaterialApp is the parent widget and maintains the material design principles.
Therefore, we can apply the same logic in our theme also.
Subsequently, we can define our global theme in the MaterialApp widget.
Before we delve into detail, let me tell you that we keep the full code snippet in this GitHub Repository.
Firstly, let us take a look at the MaterialApp theme definition.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.