fix: Disable giphy button when editing, change close icon
This commit is contained in:
@@ -193,37 +193,16 @@ class MessageActionsModal extends StatelessWidget {
|
|||||||
'Edit message',
|
'Edit message',
|
||||||
style: Theme.of(context).textTheme.headline6,
|
style: Theme.of(context).textTheme.headline6,
|
||||||
),
|
),
|
||||||
Container(
|
IconButton(
|
||||||
height: 30,
|
icon: Icon(
|
||||||
padding: const EdgeInsets.all(2.0),
|
Icons.cancel_outlined,
|
||||||
child: AspectRatio(
|
size: 15,
|
||||||
aspectRatio: 1,
|
color:
|
||||||
child: RawMaterialButton(
|
StreamChatTheme.of(context).primaryIconTheme.color,
|
||||||
shape: RoundedRectangleBorder(
|
|
||||||
borderRadius: BorderRadius.circular(4),
|
|
||||||
),
|
|
||||||
elevation: 0,
|
|
||||||
highlightElevation: 0,
|
|
||||||
focusElevation: 0,
|
|
||||||
disabledElevation: 0,
|
|
||||||
hoverElevation: 0,
|
|
||||||
onPressed: () {
|
|
||||||
Navigator.of(context).pop();
|
|
||||||
},
|
|
||||||
fillColor:
|
|
||||||
Theme.of(context).brightness == Brightness.dark
|
|
||||||
? Colors.white.withOpacity(.1)
|
|
||||||
: Colors.black.withOpacity(.1),
|
|
||||||
padding: EdgeInsets.all(4),
|
|
||||||
child: Icon(
|
|
||||||
Icons.close,
|
|
||||||
size: 15,
|
|
||||||
color: StreamChatTheme.of(context)
|
|
||||||
.primaryIconTheme
|
|
||||||
.color,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.of(context).pop();
|
||||||
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
children: [
|
children: [
|
||||||
if (!widget.disableAttachments) _buildAttachmentButton(),
|
if (!widget.disableAttachments) _buildAttachmentButton(),
|
||||||
_buildGiphyButton(),
|
if (widget.editMessage != null) _buildGiphyButton(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
if (widget.actionsLocation == ActionsLocation.left)
|
if (widget.actionsLocation == ActionsLocation.left)
|
||||||
|
|||||||
Reference in New Issue
Block a user