Skip to content

Commit

Permalink
android screens view fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
VB10 committed May 9, 2020
1 parent 8f09aed commit 1d1a509
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/view/chat/chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import 'chat_android.dart';

class Chat extends StatefulWidget {
@override
createState() => !Platform.isIOS ? ChatView() : ChatViewAndroid();
createState() => Platform.isIOS ? ChatView() : ChatViewAndroid();
}
10 changes: 4 additions & 6 deletions lib/view/chat/chat_android.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
),
Expand All @@ -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<List<ChatModel>>(
Expand Down

0 comments on commit 1d1a509

Please sign in to comment.