mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-12 02:32:54 +01:00
Merge branch 'krille/fix-story-layouts' into 'main'
fix: Some story layout bugs See merge request famedly/fluffychat!802
This commit is contained in:
commit
e6ab88a0a4
@ -213,7 +213,11 @@ class StoryView extends StatelessWidget {
|
||||
return Container();
|
||||
}
|
||||
controller.loadingModeOff();
|
||||
return Center(
|
||||
return Container(
|
||||
constraints: const BoxConstraints.expand(),
|
||||
alignment: controller.storyThemeData.fit == BoxFit.cover
|
||||
? null
|
||||
: Alignment.center,
|
||||
child: Image.memory(
|
||||
matrixFile.bytes,
|
||||
fit: controller.storyThemeData.fit,
|
||||
@ -221,7 +225,8 @@ class StoryView extends StatelessWidget {
|
||||
);
|
||||
},
|
||||
),
|
||||
GestureDetector(
|
||||
SafeArea(
|
||||
child: GestureDetector(
|
||||
onTapDown: controller.hold,
|
||||
onTapUp: controller.unhold,
|
||||
onTapCancel: controller.unhold,
|
||||
@ -231,10 +236,7 @@ class StoryView extends StatelessWidget {
|
||||
onHorizontalDragEnd: controller.unhold,
|
||||
child: AnimatedContainer(
|
||||
duration: const Duration(milliseconds: 200),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 8.0,
|
||||
vertical: 64,
|
||||
),
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
decoration: BoxDecoration(
|
||||
gradient: event.messageType == MessageTypes.Text
|
||||
? LinearGradient(
|
||||
@ -275,6 +277,7 @@ class StoryView extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
top: 4,
|
||||
left: 4,
|
||||
|
Loading…
Reference in New Issue
Block a user