Last active
May 23, 2019 14:39
-
-
Save rurickdev/87a603991f58396cd563ac1545adb688 to your computer and use it in GitHub Desktop.
Flutter Ejemplo Tema Oscuro 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MaterialApp( | |
title: 'Flutter Ejemplo Tema Oscuro', | |
//Tema Principal, se usa cuando no está activo el modo oscuro | |
theme: ThemeData( | |
//Se indica que el tema tiene un brillo luminoso/claro | |
brightness: Brightness.light, | |
primarySwatch: Colors.pink, | |
), | |
//Tema Oscuro, se usa cuando se activa el modo oscuro | |
darkTheme: ThemeData( | |
//Se indica que el tema tiene un brillo oscuro | |
brightness: Brightness.dark, | |
primarySwatch: Colors.pink, | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment