fix qa problems

This commit is contained in:
Salvatore Giordano
2020-11-05 14:35:50 +01:00
parent be4805116f
commit 119c6660e9
4 changed files with 195 additions and 188 deletions
+1 -1
View File
@@ -1 +1 @@
bdf1751976c4ee1e2ef7638eabcfd1ea bb5f9103d9045cd6244bcae1f5f343e5
+1 -1
View File
@@ -1,6 +1,6 @@
name: example name: example
description: A new Flutter project. description: A new Flutter project.
version: 1.0.39+41 version: 1.0.40+42
environment: environment:
sdk: ">=2.2.2 <3.0.0" sdk: ">=2.2.2 <3.0.0"
+20 -5
View File
@@ -41,7 +41,10 @@ class GiphyAttachment extends StatelessWidget {
return Column( return Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
Card( DecoratedBox(
decoration: BoxDecoration(),
child: Card(
elevation: 2,
clipBehavior: Clip.antiAlias, clipBehavior: Clip.antiAlias,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
@@ -61,7 +64,8 @@ class GiphyAttachment extends StatelessWidget {
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(8.0),
child: GestureDetector( child: GestureDetector(
onTap: () { onTap: () {
Navigator.push(context, MaterialPageRoute(builder: (_) { Navigator.push(context,
MaterialPageRoute(builder: (_) {
return FullScreenImage( return FullScreenImage(
url: attachment.imageUrl ?? url: attachment.imageUrl ??
attachment.assetUrl ?? attachment.assetUrl ??
@@ -118,7 +122,8 @@ class GiphyAttachment extends StatelessWidget {
Text( Text(
'GIPHY', 'GIPHY',
style: TextStyle( style: TextStyle(
color: StreamChatTheme.of(context).accentColor, color:
StreamChatTheme.of(context).accentColor,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: 11.0, fontSize: 11.0,
), ),
@@ -133,16 +138,21 @@ class GiphyAttachment extends StatelessWidget {
if (attachment.title != null) if (attachment.title != null)
Container( Container(
alignment: Alignment.bottomCenter, alignment: Alignment.bottomCenter,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Card( Card(
elevation: 2,
child: IconButton( child: IconButton(
padding: const EdgeInsets.all(0),
constraints: BoxConstraints.tight(Size(32, 32)),
icon: Icon( icon: Icon(
StreamIcons.left, StreamIcons.left,
size: 24.0, size: 24.0,
), ),
splashRadius: 24, splashRadius: 16,
onPressed: () { onPressed: () {
streamChannel.channel.sendAction(message, { streamChannel.channel.sendAction(message, {
'image_action': 'shuffle', 'image_action': 'shuffle',
@@ -162,12 +172,15 @@ class GiphyAttachment extends StatelessWidget {
), ),
), ),
Card( Card(
elevation: 2,
child: IconButton( child: IconButton(
padding: const EdgeInsets.all(0),
constraints: BoxConstraints.tight(Size(32, 32)),
icon: Icon( icon: Icon(
StreamIcons.right, StreamIcons.right,
size: 24.0, size: 24.0,
), ),
splashRadius: 24, splashRadius: 16,
onPressed: () { onPressed: () {
streamChannel.channel.sendAction(message, { streamChannel.channel.sendAction(message, {
'image_action': 'shuffle', 'image_action': 'shuffle',
@@ -179,6 +192,7 @@ class GiphyAttachment extends StatelessWidget {
], ],
), ),
), ),
),
SizedBox( SizedBox(
height: 4.0, height: 4.0,
), ),
@@ -233,6 +247,7 @@ class GiphyAttachment extends StatelessWidget {
], ],
), ),
), ),
),
SizedBox( SizedBox(
height: 4.0, height: 4.0,
), ),
+6 -14
View File
@@ -483,13 +483,6 @@ class MessageInputState extends State<MessageInput> {
child: Container( child: Container(
constraints: BoxConstraints.loose(Size.fromHeight(400)), constraints: BoxConstraints.loose(Size.fromHeight(400)),
decoration: BoxDecoration( decoration: BoxDecoration(
// boxShadow: [
// BoxShadow(
// spreadRadius: -8,
// blurRadius: 5.0,
// offset: Offset(0, -4),
// ),
// ],
color: StreamChatTheme.of(context).primaryColor, color: StreamChatTheme.of(context).primaryColor,
borderRadius: BorderRadius.circular(8.0)), borderRadius: BorderRadius.circular(8.0)),
child: ListView( child: ListView(
@@ -606,13 +599,6 @@ class MessageInputState extends State<MessageInput> {
child: Container( child: Container(
constraints: BoxConstraints.loose(Size.fromHeight(400)), constraints: BoxConstraints.loose(Size.fromHeight(400)),
decoration: BoxDecoration( decoration: BoxDecoration(
boxShadow: [
BoxShadow(
spreadRadius: -8,
blurRadius: 5.0,
offset: Offset(0, -4),
),
],
color: StreamChatTheme.of(context).primaryColor, color: StreamChatTheme.of(context).primaryColor,
), ),
child: FutureBuilder<List<Member>>( child: FutureBuilder<List<Member>>(
@@ -625,6 +611,12 @@ class MessageInputState extends State<MessageInput> {
children: snapshot.data children: snapshot.data
.map((m) => ListTile( .map((m) => ListTile(
leading: UserAvatar( leading: UserAvatar(
constraints: BoxConstraints.tight(
Size(
40,
40,
),
),
user: m.user, user: m.user,
), ),
title: Text( title: Text(