cleanup
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user