mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-24 14:32:37 +01:00
chore: Center story images
This commit is contained in:
parent
11c4c97c64
commit
b89d6884bd
@ -17,6 +17,7 @@ class AddStoryView extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
final video = controller.videoPlayerController;
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.blueGrey,
|
||||
appBar: AppBar(
|
||||
systemOverlayStyle: SystemUiOverlayStyle.light,
|
||||
backgroundColor: Colors.transparent,
|
||||
@ -70,7 +71,7 @@ class AddStoryView extends StatelessWidget {
|
||||
? null
|
||||
: DecorationImage(
|
||||
image: MemoryImage(controller.image!.bytes),
|
||||
fit: BoxFit.cover,
|
||||
fit: BoxFit.contain,
|
||||
opacity: 0.75,
|
||||
),
|
||||
gradient: controller.hasMedia
|
||||
|
@ -182,9 +182,11 @@ class StoryView extends StatelessWidget {
|
||||
: Container();
|
||||
}
|
||||
controller.loadingModeOff();
|
||||
return Image.memory(
|
||||
matrixFile.bytes,
|
||||
fit: BoxFit.cover,
|
||||
return Center(
|
||||
child: Image.memory(
|
||||
matrixFile.bytes,
|
||||
fit: BoxFit.contain,
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user