Compare commits

...

2 Commits

Author SHA1 Message Date
d8dd4060c0 🚀 Launch 1.3.7+12 2024-10-14 00:39:35 +08:00
c8e131c1ab 🐛 Fix share image size issue 2024-10-14 00:37:42 +08:00
2 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ class _PostActionState extends State<PostAction> {
final List<String> attachments = widget.item.body['attachments'] is List
? List.from(widget.item.body['attachments']?.whereType<String>())
: List.empty();
final hasAttachment = attachments.isNotEmpty;
final hasMultipleAttachment = attachments.length > 1;
final screenshot = ScreenshotController();
final image = await screenshot.captureFromLongWidget(
@ -104,7 +104,7 @@ class _PostActionState extends State<PostAction> {
pixelRatio: 2,
constraints: BoxConstraints(
minWidth: 480,
maxWidth: hasAttachment ? 480 : 640,
maxWidth: hasMultipleAttachment ? 480 : 640,
minHeight: 640,
maxHeight: double.infinity,
),

View File

@ -2,7 +2,7 @@ name: solian
description: "The Solar Network App"
publish_to: "none"
version: 1.3.7+11
version: 1.3.7+12
environment:
sdk: ">=3.3.4 <4.0.0"