mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-04 09:14:10 +01:00
chore: Adjust image chat design
This commit is contained in:
parent
917dde5a1c
commit
fbb92cbfe1
@ -20,7 +20,6 @@ class ImageBubble extends StatefulWidget {
|
|||||||
final BoxFit fit;
|
final BoxFit fit;
|
||||||
final bool maxSize;
|
final bool maxSize;
|
||||||
final Color backgroundColor;
|
final Color backgroundColor;
|
||||||
final double radius;
|
|
||||||
final bool thumbnailOnly;
|
final bool thumbnailOnly;
|
||||||
final bool animated;
|
final bool animated;
|
||||||
final double width;
|
final double width;
|
||||||
@ -34,7 +33,6 @@ class ImageBubble extends StatefulWidget {
|
|||||||
this.maxSize = true,
|
this.maxSize = true,
|
||||||
this.backgroundColor,
|
this.backgroundColor,
|
||||||
this.fit = BoxFit.cover,
|
this.fit = BoxFit.cover,
|
||||||
this.radius = 10.0,
|
|
||||||
this.thumbnailOnly = true,
|
this.thumbnailOnly = true,
|
||||||
this.onLoaded,
|
this.onLoaded,
|
||||||
this.width = 400,
|
this.width = 400,
|
||||||
@ -406,9 +404,7 @@ class _ImageBubbleState extends State<ImageBubble> {
|
|||||||
child: content,
|
child: content,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return ClipRRect(
|
return InkWell(
|
||||||
borderRadius: BorderRadius.circular(widget.radius),
|
|
||||||
child: InkWell(
|
|
||||||
onTap: () => onTap(context),
|
onTap: () => onTap(context),
|
||||||
child: Hero(
|
child: Hero(
|
||||||
tag: widget.event.eventId,
|
tag: widget.event.eventId,
|
||||||
@ -426,7 +422,6 @@ class _ImageBubbleState extends State<ImageBubble> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -247,6 +247,7 @@ class Message extends StatelessWidget {
|
|||||||
child: Material(
|
child: Material(
|
||||||
color: Theme.of(context).backgroundColor,
|
color: Theme.of(context).backgroundColor,
|
||||||
borderRadius: BorderRadius.circular(AppConfig.borderRadius / 2),
|
borderRadius: BorderRadius.circular(AppConfig.borderRadius / 2),
|
||||||
|
clipBehavior: Clip.antiAlias,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(6.0),
|
padding: const EdgeInsets.all(6.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
@ -51,7 +51,6 @@ class ImageViewerView extends StatelessWidget {
|
|||||||
fit: BoxFit.contain,
|
fit: BoxFit.contain,
|
||||||
backgroundColor: Colors.black,
|
backgroundColor: Colors.black,
|
||||||
maxSize: false,
|
maxSize: false,
|
||||||
radius: 0.0,
|
|
||||||
thumbnailOnly: false,
|
thumbnailOnly: false,
|
||||||
animated: true,
|
animated: true,
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user