chore: Center story images
This commit is contained in:
parent
92406b5aa5
commit
60a0f95ae2
2 changed files with 7 additions and 4 deletions
|
|
@ -17,6 +17,7 @@ class AddStoryView extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final video = controller.videoPlayerController;
|
final video = controller.videoPlayerController;
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
|
backgroundColor: Colors.blueGrey,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
systemOverlayStyle: SystemUiOverlayStyle.light,
|
systemOverlayStyle: SystemUiOverlayStyle.light,
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
|
|
@ -70,7 +71,7 @@ class AddStoryView extends StatelessWidget {
|
||||||
? null
|
? null
|
||||||
: DecorationImage(
|
: DecorationImage(
|
||||||
image: MemoryImage(controller.image!.bytes),
|
image: MemoryImage(controller.image!.bytes),
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.contain,
|
||||||
opacity: 0.75,
|
opacity: 0.75,
|
||||||
),
|
),
|
||||||
gradient: controller.hasMedia
|
gradient: controller.hasMedia
|
||||||
|
|
|
||||||
|
|
@ -182,9 +182,11 @@ class StoryView extends StatelessWidget {
|
||||||
: Container();
|
: Container();
|
||||||
}
|
}
|
||||||
controller.loadingModeOff();
|
controller.loadingModeOff();
|
||||||
return Image.memory(
|
return Center(
|
||||||
matrixFile.bytes,
|
child: Image.memory(
|
||||||
fit: BoxFit.cover,
|
matrixFile.bytes,
|
||||||
|
fit: BoxFit.contain,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue