Merge pull request #33 from nosmirck/bugfix/overlay
Fix for #32. Removed the Flex causing the widget to overflow
This commit is contained in:
@@ -279,15 +279,12 @@ class _MessageInputState extends State<MessageInput> {
|
||||
],
|
||||
color: StreamChatTheme.of(context).primaryColor,
|
||||
),
|
||||
child: Flex(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
direction: Axis.vertical,
|
||||
children: <Widget>[
|
||||
ListView(
|
||||
child: ListView(
|
||||
padding: const EdgeInsets.all(0),
|
||||
shrinkWrap: true,
|
||||
children: commands
|
||||
.map((c) => ListTile(
|
||||
.map(
|
||||
(c) => ListTile(
|
||||
title: Text.rich(
|
||||
TextSpan(
|
||||
text: '${c.name}',
|
||||
@@ -306,10 +303,9 @@ class _MessageInputState extends State<MessageInput> {
|
||||
onTap: () {
|
||||
_setCommand(c);
|
||||
},
|
||||
))
|
||||
.toList(),
|
||||
),
|
||||
],
|
||||
)
|
||||
.toList(),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -350,11 +346,7 @@ class _MessageInputState extends State<MessageInput> {
|
||||
],
|
||||
color: StreamChatTheme.of(context).primaryColor,
|
||||
),
|
||||
child: Flex(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
direction: Axis.vertical,
|
||||
children: <Widget>[
|
||||
ListView(
|
||||
child: ListView(
|
||||
padding: const EdgeInsets.all(0),
|
||||
shrinkWrap: true,
|
||||
children: members
|
||||
@@ -371,8 +363,8 @@ class _MessageInputState extends State<MessageInput> {
|
||||
|
||||
_textController.value = TextEditingValue(
|
||||
text: rejoin +
|
||||
_textController.text.substring(
|
||||
_textController.selection.start),
|
||||
_textController.text
|
||||
.substring(_textController.selection.start),
|
||||
selection: TextSelection.collapsed(
|
||||
offset: rejoin.length,
|
||||
),
|
||||
@@ -384,8 +376,6 @@ class _MessageInputState extends State<MessageInput> {
|
||||
))
|
||||
.toList(),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user