Skip to content

Commit

Permalink
Dark theme fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JideGuru committed May 2, 2020
1 parent a6cc7b5 commit 59b36f8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
7 changes: 0 additions & 7 deletions lib/screens/chats.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ class _ChatsState extends State<Chats> with SingleTickerProviderStateMixin,
super.build(context);
return Scaffold(
appBar: AppBar(
// elevation: 4,
leading: IconButton(
icon: Icon(
Icons.keyboard_backspace,
),
onPressed: (){},
),
title: TextField(
decoration: InputDecoration.collapsed(
hintText: 'Search',
Expand Down
6 changes: 3 additions & 3 deletions lib/util/const.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ class Constants{

//Colors for theme
static Color lightPrimary = Color(0xfffcfcff);
static Color darkPrimary = Colors.black;
static Color darkPrimary = Color(0xff313131);
static Color lightAccent = Colors.blue;
static Color darkAccent = Colors.blueAccent;
static Color darkAccent = Colors.lightBlue;
static Color lightBG = Color(0xfffcfcff);
static Color darkBG = Colors.black;
static Color darkBG = Color(0xff313131);
static Color badgeColor = Colors.red;

static ThemeData lightTheme = ThemeData(
Expand Down
5 changes: 3 additions & 2 deletions lib/widgets/chat_bubble.dart
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,10 @@ class _ChatBubbleState extends State<ChatBubble> {
padding: widget.isMe
? EdgeInsets.only(right: 10, bottom: 10.0,)
:EdgeInsets.only(left: 10, bottom: 10.0,),
child: Text(widget.time,
child: Text(
widget.time,
style: TextStyle(
color: Colors.black,
color: Theme.of(context).textTheme.title.color,
fontSize: 10.0,
),
),
Expand Down

0 comments on commit 59b36f8

Please sign in to comment.