diff --git a/lib/screens/creators/hub.dart b/lib/screens/creators/hub.dart index 808d021..815efda 100644 --- a/lib/screens/creators/hub.dart +++ b/lib/screens/creators/hub.dart @@ -114,9 +114,9 @@ class CreatorHubShellScreen extends StatelessWidget { isRoot: true, child: Row( children: [ - SizedBox(width: 360, child: const CreatorHubScreen(isAside: true)), + Flexible(flex: 2, child: const CreatorHubScreen(isAside: true)), const VerticalDivider(width: 1), - Expanded(child: child), + Flexible(flex: 3, child: child), ], ), ); diff --git a/lib/screens/developers/hub.dart b/lib/screens/developers/hub.dart index ba862e9..0cba940 100644 --- a/lib/screens/developers/hub.dart +++ b/lib/screens/developers/hub.dart @@ -51,12 +51,9 @@ class DeveloperHubShellScreen extends StatelessWidget { isRoot: true, child: Row( children: [ - SizedBox( - width: 360, - child: const DeveloperHubScreen(isAside: true), - ), + Flexible(flex: 2, child: const DeveloperHubScreen(isAside: true)), const VerticalDivider(width: 1), - Expanded(child: child), + Flexible(flex: 3, child: child), ], ), ); diff --git a/lib/widgets/post/post_item_creator.dart b/lib/widgets/post/post_item_creator.dart index e949946..fa49614 100644 --- a/lib/widgets/post/post_item_creator.dart +++ b/lib/widgets/post/post_item_creator.dart @@ -93,8 +93,6 @@ class PostItemCreator extends HookConsumerWidget { }, child: Material( color: backgroundColor ?? Theme.of(context).colorScheme.surface, - borderRadius: BorderRadius.circular(12), - elevation: 1, child: InkWell( borderRadius: BorderRadius.circular(12), onTap: () { @@ -202,7 +200,6 @@ class PostItemCreator extends HookConsumerWidget { CloudFileList( files: item.attachments, maxWidth: MediaQuery.of(context).size.width * 0.85, - minWidth: MediaQuery.of(context).size.width * 0.9, padding: EdgeInsets.only(top: 8), ), diff --git a/lib/widgets/post/post_list.dart b/lib/widgets/post/post_list.dart index 80e90d4..e761bb0 100644 --- a/lib/widgets/post/post_list.dart +++ b/lib/widgets/post/post_list.dart @@ -103,13 +103,18 @@ class SliverPostList extends HookConsumerWidget { Widget _buildPostItem(SnPost post) { switch (itemType) { case PostItemType.creator: - return PostItemCreator( - item: post, - backgroundColor: backgroundColor, - padding: padding, - isOpenable: isOpenable, - onRefresh: onRefresh, - onUpdate: onUpdate, + return Column( + children: [ + PostItemCreator( + item: post, + backgroundColor: backgroundColor, + padding: padding, + isOpenable: isOpenable, + onRefresh: onRefresh, + onUpdate: onUpdate, + ), + const Divider(), + ], ); case PostItemType.regular: return Card(