From 9b8314c4a407b1952224447d18d6d874f281d3b5 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 3 Jan 2020 13:51:18 +0100 Subject: [PATCH] Fix textfield --- lib/views/chat.dart | 3 +++ lib/views/chat_list.dart | 3 +-- pubspec.yaml | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/views/chat.dart b/lib/views/chat.dart index 970ca0b..721f69d 100644 --- a/lib/views/chat.dart +++ b/lib/views/chat.dart @@ -214,6 +214,9 @@ class _ChatState extends State { SizedBox(width: 8), Expanded( child: TextField( + maxLines: kIsWeb ? 1 : 8, + keyboardType: + kIsWeb ? TextInputType.text : TextInputType.multiline, onSubmitted: (t) => send(), controller: sendController, decoration: InputDecoration( diff --git a/lib/views/chat_list.dart b/lib/views/chat_list.dart index 156cd46..8d9430d 100644 --- a/lib/views/chat_list.dart +++ b/lib/views/chat_list.dart @@ -19,8 +19,7 @@ class ChatListView extends StatelessWidget { firstScaffold: ChatList(), secondScaffold: Scaffold( body: Center( - child: Icon(Icons.chat, - size: 100, color: Theme.of(context).primaryColor), + child: Image.asset("assets/logo.png", width: 100, height: 100), ), ), ); diff --git a/pubspec.yaml b/pubspec.yaml index 4be6480..d40e313 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -65,6 +65,7 @@ flutter: # To add assets to your application, add an assets section, like this: assets: - assets/fluffychat-banner.png + - assets/logo.png # - images/a_dot_ham.jpeg # An image asset can refer to one or more resolution-specific "variants", see