Fix textfield
This commit is contained in:
parent
d4418392a3
commit
9b8314c4a4
|
@ -214,6 +214,9 @@ class _ChatState extends State<Chat> {
|
||||||
SizedBox(width: 8),
|
SizedBox(width: 8),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
maxLines: kIsWeb ? 1 : 8,
|
||||||
|
keyboardType:
|
||||||
|
kIsWeb ? TextInputType.text : TextInputType.multiline,
|
||||||
onSubmitted: (t) => send(),
|
onSubmitted: (t) => send(),
|
||||||
controller: sendController,
|
controller: sendController,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
|
|
|
@ -19,8 +19,7 @@ class ChatListView extends StatelessWidget {
|
||||||
firstScaffold: ChatList(),
|
firstScaffold: ChatList(),
|
||||||
secondScaffold: Scaffold(
|
secondScaffold: Scaffold(
|
||||||
body: Center(
|
body: Center(
|
||||||
child: Icon(Icons.chat,
|
child: Image.asset("assets/logo.png", width: 100, height: 100),
|
||||||
size: 100, color: Theme.of(context).primaryColor),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -65,6 +65,7 @@ flutter:
|
||||||
# To add assets to your application, add an assets section, like this:
|
# To add assets to your application, add an assets section, like this:
|
||||||
assets:
|
assets:
|
||||||
- assets/fluffychat-banner.png
|
- assets/fluffychat-banner.png
|
||||||
|
- assets/logo.png
|
||||||
# - images/a_dot_ham.jpeg
|
# - images/a_dot_ham.jpeg
|
||||||
|
|
||||||
# An image asset can refer to one or more resolution-specific "variants", see
|
# An image asset can refer to one or more resolution-specific "variants", see
|
||||||
|
|
Loading…
Reference in a new issue