diff --git a/lib/main.dart b/lib/main.dart index 5656045..794507c 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -16,10 +16,10 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return new MaterialApp( - title: "WhatsApp", + title: "WhatsApp Clone Using Flutter", theme: new ThemeData( - primaryColor: new Color(0xff075E54), - accentColor: new Color(0xff25D366), + primaryColor: new Color(0xff078E54), + accentColor: new Color(0xff25D966), ), debugShowCheckedModeBanner: false, home: new WhatsAppHome(cameras:cameras), diff --git a/lib/pages/chat_screen.dart b/lib/pages/chat_screen.dart index ec5399f..5d7f11f 100644 --- a/lib/pages/chat_screen.dart +++ b/lib/pages/chat_screen.dart @@ -11,6 +11,7 @@ class ChatScreen extends StatefulWidget { class ChatScreenState extends State { @override Widget build(BuildContext context) { + int online = 0; //may be zero or 1 return new ListView.builder( itemCount: dummyData.length, itemBuilder: (context, i) => new Column( @@ -31,9 +32,13 @@ class ChatScreenState extends State { dummyData[i].name, style: new TextStyle(fontWeight: FontWeight.bold), ), + online ? new Text( + "Online", + style: new TextStyle(color: Colors.grey, fontSize: 15.0), + ) : new Text( dummyData[i].time, - style: new TextStyle(color: Colors.grey, fontSize: 14.0), + style: new TextStyle(color: Colors.grey, fontSize: 15.0), ), ], ), @@ -41,7 +46,7 @@ class ChatScreenState extends State { padding: const EdgeInsets.only(top: 5.0), child: new Text( dummyData[i].message, - style: new TextStyle(color: Colors.grey, fontSize: 15.0), + style: new TextStyle(color: Colors.grey, fontSize: 16.0), ), ), )