From 1d1a5098a43655ca7bfa891e153d29239f3def01 Mon Sep 17 00:00:00 2001 From: vb Date: Sun, 10 May 2020 00:11:02 +0300 Subject: [PATCH] android screens view fixed --- lib/view/chat/chat.dart | 2 +- lib/view/chat/chat_android.dart | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/view/chat/chat.dart b/lib/view/chat/chat.dart index 3fc5bbf..e922560 100644 --- a/lib/view/chat/chat.dart +++ b/lib/view/chat/chat.dart @@ -6,5 +6,5 @@ import 'chat_android.dart'; class Chat extends StatefulWidget { @override - createState() => !Platform.isIOS ? ChatView() : ChatViewAndroid(); + createState() => Platform.isIOS ? ChatView() : ChatViewAndroid(); } diff --git a/lib/view/chat/chat_android.dart b/lib/view/chat/chat_android.dart index 9e8e8e9..b3eacb6 100644 --- a/lib/view/chat/chat_android.dart +++ b/lib/view/chat/chat_android.dart @@ -25,11 +25,9 @@ class ChatViewAndroid extends ChatViewModel { centerTitle: false, backgroundColor: Colors.green, bottom: TabBar( - tabs: [Tab(text: "CHATS"), Tab(text: "STATE"), Tab(text: "CALL")], - indicatorColor: Theme.of(context).canvasColor, - // unselectedLabelColor: Colors.red, - labelStyle: appBarTextStyle, - ), + tabs: [Tab(text: "CHATS"), Tab(text: "STATE"), Tab(text: "CALL")], + indicatorColor: Theme.of(context).canvasColor, + labelStyle: Theme.of(context).textTheme.headline6), ), body: buildFutureChats(), ), @@ -43,7 +41,7 @@ class ChatViewAndroid extends ChatViewModel { TextStyle get appBarTitleTextStyle => Theme.of(context) .primaryTextTheme .headline4 - .copyWith(fontWeight: FontWeight.w700); + .copyWith(fontWeight: FontWeight.w700, color: Colors.white); Widget buildFutureChats() { return FutureBuilder>(