This commit is contained in:
Salvatore Giordano
2020-11-05 15:27:32 +01:00
parent 38fb946071
commit d51584e3ca
+2 -25
View File
@@ -231,8 +231,7 @@ class MessageInputState extends State<MessageInput> {
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Center( Container(
child: Container(
height: 16, height: 16,
width: 16, width: 16,
foregroundDecoration: BoxDecoration( foregroundDecoration: BoxDecoration(
@@ -276,35 +275,13 @@ class MessageInputState extends State<MessageInput> {
), ),
), ),
), ),
),
Padding( Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0), padding: const EdgeInsets.symmetric(horizontal: 16.0),
child: Text('Send also as direct message'), child: Text('Send also as direct message'),
), ),
], ],
), ),
); );
return Row(
children: [
ClipRRect(
clipBehavior: Clip.hardEdge,
borderRadius: BorderRadius.circular(1),
child: Checkbox(
value: _sendAsDm,
onChanged: (val) => setState(
() {
_sendAsDm = val;
},
),
activeColor: StreamChatTheme.of(context).accentColor,
),
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
child: Text('Send also as direct message'),
),
],
);
} }
AnimatedCrossFade _animateSendButton(BuildContext context) { AnimatedCrossFade _animateSendButton(BuildContext context) {