fix: Added visibility message

This commit is contained in:
Deven Joshi
2020-11-04 16:54:58 +05:30
parent 3575089bf3
commit 9c3fc656e2
+35 -4
View File
@@ -41,9 +41,13 @@ class GiphyAttachment extends StatelessWidget {
Widget _buildSendingAttachment(context) { Widget _buildSendingAttachment(context) {
final streamChannel = StreamChannel.of(context); final streamChannel = StreamChannel.of(context);
return Card( return Column(
mainAxisSize: MainAxisSize.min,
children: [
Card(
clipBehavior: Clip.antiAlias, clipBehavior: Clip.antiAlias,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8.0)), shape:
RoundedRectangleBorder(borderRadius: BorderRadius.circular(8.0)),
child: Column( child: Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.stretch, crossAxisAlignment: CrossAxisAlignment.stretch,
@@ -193,8 +197,7 @@ class GiphyAttachment extends StatelessWidget {
'Cancel', 'Cancel',
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: Colors.black.withOpacity(0.5) color: Colors.black.withOpacity(0.5)),
),
), ),
], ],
), ),
@@ -225,6 +228,34 @@ class GiphyAttachment extends StatelessWidget {
), ),
], ],
), ),
),
SizedBox(
height: 4.0,
),
Align(
alignment: Alignment.centerRight,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(
StreamIcons.eye,
color: Colors.black.withOpacity(0.5),
size: 16.0,
),
SizedBox(
width: 4.0,
),
Text(
'Only visible to you',
style: TextStyle(color: Colors.black.withOpacity(0.5)),
),
],
),
),
),
],
); );
} }