🐛 Fix bugs
This commit is contained in:
@@ -13,6 +13,7 @@ import 'package:island/screens/creators/publishers_form.dart';
|
|||||||
import 'package:island/screens/posts/compose.dart';
|
import 'package:island/screens/posts/compose.dart';
|
||||||
import 'package:island/services/compose_storage_db.dart';
|
import 'package:island/services/compose_storage_db.dart';
|
||||||
import 'package:island/widgets/content/cloud_files.dart';
|
import 'package:island/widgets/content/cloud_files.dart';
|
||||||
|
import 'package:island/widgets/content/sheet.dart';
|
||||||
import 'package:island/widgets/post/compose_attachments.dart';
|
import 'package:island/widgets/post/compose_attachments.dart';
|
||||||
import 'package:island/widgets/post/compose_form_fields.dart';
|
import 'package:island/widgets/post/compose_form_fields.dart';
|
||||||
import 'package:island/widgets/post/compose_info_banner.dart';
|
import 'package:island/widgets/post/compose_info_banner.dart';
|
||||||
@@ -261,45 +262,12 @@ class PostComposeCard extends HookConsumerWidget {
|
|||||||
context: context,
|
context: context,
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
useRootNavigator: true,
|
useRootNavigator: true,
|
||||||
backgroundColor: Colors.transparent,
|
|
||||||
builder:
|
builder:
|
||||||
(context) => DraggableScrollableSheet(
|
(context) => SheetScaffold(
|
||||||
initialChildSize: 0.7,
|
titleText: 'Post Preview',
|
||||||
maxChildSize: 0.9,
|
child: SingleChildScrollView(
|
||||||
minChildSize: 0.5,
|
child: PostItem(item: post),
|
||||||
builder:
|
),
|
||||||
(context, scrollController) => Container(
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
color:
|
|
||||||
Theme.of(context).scaffoldBackgroundColor,
|
|
||||||
borderRadius: const BorderRadius.vertical(
|
|
||||||
top: Radius.circular(16),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
Container(
|
|
||||||
width: 40,
|
|
||||||
height: 4,
|
|
||||||
margin: const EdgeInsets.symmetric(
|
|
||||||
vertical: 8,
|
|
||||||
),
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
color:
|
|
||||||
Theme.of(context).colorScheme.outline,
|
|
||||||
borderRadius: BorderRadius.circular(2),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Expanded(
|
|
||||||
child: SingleChildScrollView(
|
|
||||||
controller: scrollController,
|
|
||||||
padding: const EdgeInsets.all(16),
|
|
||||||
child: PostItem(item: post),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
@@ -57,14 +57,14 @@ class ComposeInfoBanner extends StatelessWidget {
|
|||||||
context,
|
context,
|
||||||
effectiveRepliedPost,
|
effectiveRepliedPost,
|
||||||
Symbols.reply,
|
Symbols.reply,
|
||||||
'postReplyingTo',
|
'postReplyingTo'.tr(),
|
||||||
),
|
),
|
||||||
if (effectiveForwardedPost != null)
|
if (effectiveForwardedPost != null)
|
||||||
_buildReferenceBanner(
|
_buildReferenceBanner(
|
||||||
context,
|
context,
|
||||||
effectiveForwardedPost,
|
effectiveForwardedPost,
|
||||||
Symbols.forward,
|
Symbols.forward,
|
||||||
'postForwardingTo',
|
'postForwardingTo'.tr(),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
@@ -76,7 +76,7 @@ class ComposeInfoBanner extends StatelessWidget {
|
|||||||
context,
|
context,
|
||||||
effectiveRepliedPost,
|
effectiveRepliedPost,
|
||||||
Symbols.reply,
|
Symbols.reply,
|
||||||
'postReplyingTo',
|
'postReplyingTo'.tr(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@ class ComposeInfoBanner extends StatelessWidget {
|
|||||||
context,
|
context,
|
||||||
effectiveForwardedPost,
|
effectiveForwardedPost,
|
||||||
Symbols.forward,
|
Symbols.forward,
|
||||||
'postForwardingTo',
|
'postForwardingTo'.tr(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user