chore: Center story images

This commit is contained in:
Christian Pauly 2021-12-27 16:43:26 +01:00
commit 60a0f95ae2
2 changed files with 7 additions and 4 deletions

View file

@ -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