fix giphy padding
This commit is contained in:
@@ -97,7 +97,7 @@ class GiphyAttachment extends StatelessWidget {
|
|||||||
top: 0,
|
top: 0,
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.white,
|
color: Colors.transparent,
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: BorderRadius.only(
|
||||||
bottomRight: Radius.circular(16.0),
|
bottomRight: Radius.circular(16.0),
|
||||||
)),
|
)),
|
||||||
@@ -133,53 +133,50 @@ class GiphyAttachment extends StatelessWidget {
|
|||||||
if (attachment.title != null)
|
if (attachment.title != null)
|
||||||
Container(
|
Container(
|
||||||
alignment: Alignment.bottomCenter,
|
alignment: Alignment.bottomCenter,
|
||||||
child: Material(
|
child: Row(
|
||||||
color: Colors.white,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
child: Row(
|
children: [
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
Card(
|
||||||
children: [
|
child: IconButton(
|
||||||
Card(
|
icon: Icon(
|
||||||
child: IconButton(
|
StreamIcons.left,
|
||||||
icon: Icon(
|
size: 24.0,
|
||||||
StreamIcons.left,
|
|
||||||
size: 24.0,
|
|
||||||
),
|
|
||||||
splashRadius: 24,
|
|
||||||
onPressed: () {
|
|
||||||
streamChannel.channel.sendAction(message, {
|
|
||||||
'image_action': 'shuffle',
|
|
||||||
});
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
shape: CircleBorder(),
|
splashRadius: 24,
|
||||||
|
onPressed: () {
|
||||||
|
streamChannel.channel.sendAction(message, {
|
||||||
|
'image_action': 'shuffle',
|
||||||
|
});
|
||||||
|
},
|
||||||
),
|
),
|
||||||
Expanded(
|
shape: CircleBorder(),
|
||||||
child: Center(
|
),
|
||||||
child: Text(
|
Expanded(
|
||||||
'"${attachment.title}"',
|
child: Center(
|
||||||
style: TextStyle(
|
child: Text(
|
||||||
fontStyle: FontStyle.italic,
|
'"${attachment.title}"',
|
||||||
),
|
style: TextStyle(
|
||||||
|
fontStyle: FontStyle.italic,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Card(
|
),
|
||||||
child: IconButton(
|
Card(
|
||||||
icon: Icon(
|
child: IconButton(
|
||||||
StreamIcons.right,
|
icon: Icon(
|
||||||
size: 24.0,
|
StreamIcons.right,
|
||||||
),
|
size: 24.0,
|
||||||
splashRadius: 24,
|
|
||||||
onPressed: () {
|
|
||||||
streamChannel.channel.sendAction(message, {
|
|
||||||
'image_action': 'shuffle',
|
|
||||||
});
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
shape: CircleBorder(),
|
splashRadius: 24,
|
||||||
|
onPressed: () {
|
||||||
|
streamChannel.channel.sendAction(message, {
|
||||||
|
'image_action': 'shuffle',
|
||||||
|
});
|
||||||
|
},
|
||||||
),
|
),
|
||||||
],
|
shape: CircleBorder(),
|
||||||
),
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
@@ -317,7 +314,10 @@ class GiphyAttachment extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(top: 8.0),
|
padding: const EdgeInsets.only(
|
||||||
|
top: 8.0,
|
||||||
|
bottom: 8,
|
||||||
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
|
|||||||
Reference in New Issue
Block a user