<p>Use dark Theme mode filed in Material app. That way when OS toggles dark mode, and app switches between light and dark themes. You can also switch it manually using platformbrightness property on media query. See example below. color: rgb(212, 212, 212); background-color: rgb(30, 30, 30); font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 19px; white-space: pre;]( MaterialApp( theme: ThemeData.light(), darkTheme: ThemeData.dark(),)</p>
How to use dark theme mode in Flutter?
This Article is posted by seven.srikanth at 5/23/2019 6:43:15 PM
Check out our other latest articles
Safearea widget - How to avoid visual overlap with Notch on flutter mobile app?How to convert row of widgets into column of widgets in flutter based on screen size?
How to run Flutter programs from GitHub?
How to get screen orientation in flutter?
NavigationRail example in flutter
Tags: dark theme
Check out our other latest articles
Safearea widget - How to avoid visual overlap with Notch on flutter mobile app?How to convert row of widgets into column of widgets in flutter based on screen size?
How to run Flutter programs from GitHub?
How to get screen orientation in flutter?
NavigationRail example in flutter