[Theme] Add initial dark theme

Took 1 hour 10 minutes
This commit is contained in:
Marcel
2020-02-16 14:57:50 +00:00
committed by Christian Pauly
parent d7448320d9
commit 26ca8ba4ad
16 changed files with 577 additions and 111 deletions

View File

@ -44,7 +44,11 @@ class Message extends StatelessWidget {
BubbleNip nip = sameSender
? BubbleNip.no
: ownMessage ? BubbleNip.rightBottom : BubbleNip.leftBottom;
final Color textColor = ownMessage ? Colors.white : Colors.black;
final Color textColor = ownMessage
? Colors.white
: Theme.of(context).brightness == Brightness.dark
? Colors.white
: Colors.black;
MainAxisAlignment rowMainAxisAlignment =
ownMessage ? MainAxisAlignment.end : MainAxisAlignment.start;