September 2019
Beginner
512 pages
12h 52m
English
One important property of a theme is brightness. Defining this property is as important as defining theme colors. As its name suggests, it exposes the brightness of the application's theme. With this property, the frameworks can determine text, buttons, and highlight colors to achieve enough contrast between background and foreground content.
This is what the ThemeData class docs (https://api.flutter.dev/flutter/material/ThemeData-class.html) say about it:
It helps to contrast between text, buttons, and the background of materials (with Material Design widgets).
Read now
Unlock full access