How to use dark theme mode in Flutter?

This Article is posted by seven.srikanth at 23-05-2019 18:43:15

Click here to support us by Subscribing to our youtube channel.

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.
MaterialApp(
theme: ThemeData.light(),
darkTheme: ThemeData.dark(),
)

Tags: dark theme


Click here to support us by Subscribing to our youtube channel.




2 Comments
Login to comment.
Recent Comments

damir at 14-08-2019

Thank you.

Login to Reply.

seven at 23-08-2019

:)





Wave animation in Flutter




Search Results





©2018 - Fluttercentral | Email to me - Seven.srikanth@gmail.com