Change message box background color
This commit is contained in:
parent
939c5da39f
commit
1f945234cf
1 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,7 @@ import 'package:contacts_plus_plus/models/session.dart';
|
||||||
import 'package:contacts_plus_plus/neos_hub.dart';
|
import 'package:contacts_plus_plus/neos_hub.dart';
|
||||||
import 'package:contacts_plus_plus/widgets/generic_avatar.dart';
|
import 'package:contacts_plus_plus/widgets/generic_avatar.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter/services.dart';
|
||||||
import 'package:intl/intl.dart';
|
import 'package:intl/intl.dart';
|
||||||
|
|
||||||
class Messages extends StatefulWidget {
|
class Messages extends StatefulWidget {
|
||||||
|
@ -258,6 +259,7 @@ class _MessagesState extends State<Messages> {
|
||||||
.of(context)
|
.of(context)
|
||||||
.viewInsets,
|
.viewInsets,
|
||||||
child: BottomAppBar(
|
child: BottomAppBar(
|
||||||
|
elevation: 0.0,
|
||||||
padding: const EdgeInsets.symmetric(vertical: 0, horizontal: 6),
|
padding: const EdgeInsets.symmetric(vertical: 0, horizontal: 6),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
|
@ -265,6 +267,7 @@ class _MessagesState extends State<Messages> {
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(8),
|
padding: const EdgeInsets.all(8),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autocorrect: true,
|
||||||
controller: _messageTextController,
|
controller: _messageTextController,
|
||||||
maxLines: 4,
|
maxLines: 4,
|
||||||
minLines: 1,
|
minLines: 1,
|
||||||
|
@ -313,6 +316,7 @@ class _MessagesState extends State<Messages> {
|
||||||
}
|
}
|
||||||
_cacheHolder!.hub.sendMessage(message);
|
_cacheHolder!.hub.sendMessage(message);
|
||||||
_messageTextController.clear();
|
_messageTextController.clear();
|
||||||
|
setState(() {});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
SnackBar(
|
SnackBar(
|
||||||
|
|
Loading…
Reference in a new issue