fix(ui-kit): fix message input dm checkbox accessibility scaling issue
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -319,7 +319,11 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
),
|
),
|
||||||
if (widget.parentMessage != null && !widget.hideSendAsDm)
|
if (widget.parentMessage != null && !widget.hideSendAsDm)
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
padding: const EdgeInsets.only(
|
||||||
|
right: 12.0,
|
||||||
|
left: 12.0,
|
||||||
|
bottom: 12.0,
|
||||||
|
),
|
||||||
child: _buildDmCheckbox(),
|
child: _buildDmCheckbox(),
|
||||||
),
|
),
|
||||||
_buildFilePickerSection(),
|
_buildFilePickerSection(),
|
||||||
@@ -354,14 +358,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildDmCheckbox() {
|
Widget _buildDmCheckbox() {
|
||||||
return Container(
|
return Row(
|
||||||
height: 36,
|
|
||||||
padding: const EdgeInsets.only(
|
|
||||||
left: 12,
|
|
||||||
bottom: 12,
|
|
||||||
top: 8,
|
|
||||||
),
|
|
||||||
child: Row(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
@@ -411,11 +408,18 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
||||||
child: Text('Also send as direct message'),
|
child: Text(
|
||||||
|
'Also send as direct message',
|
||||||
|
style: StreamChatTheme.of(context).textTheme.footnote.copyWith(
|
||||||
|
color: StreamChatTheme.of(context)
|
||||||
|
.colorTheme
|
||||||
|
.black
|
||||||
|
.withOpacity(0.5),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user