💄 Optimized creator mode post item
This commit is contained in:
@@ -114,9 +114,9 @@ class CreatorHubShellScreen extends StatelessWidget {
|
|||||||
isRoot: true,
|
isRoot: true,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
SizedBox(width: 360, child: const CreatorHubScreen(isAside: true)),
|
Flexible(flex: 2, child: const CreatorHubScreen(isAside: true)),
|
||||||
const VerticalDivider(width: 1),
|
const VerticalDivider(width: 1),
|
||||||
Expanded(child: child),
|
Flexible(flex: 3, child: child),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@@ -51,12 +51,9 @@ class DeveloperHubShellScreen extends StatelessWidget {
|
|||||||
isRoot: true,
|
isRoot: true,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
Flexible(flex: 2, child: const DeveloperHubScreen(isAside: true)),
|
||||||
width: 360,
|
|
||||||
child: const DeveloperHubScreen(isAside: true),
|
|
||||||
),
|
|
||||||
const VerticalDivider(width: 1),
|
const VerticalDivider(width: 1),
|
||||||
Expanded(child: child),
|
Flexible(flex: 3, child: child),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@@ -93,8 +93,6 @@ class PostItemCreator extends HookConsumerWidget {
|
|||||||
},
|
},
|
||||||
child: Material(
|
child: Material(
|
||||||
color: backgroundColor ?? Theme.of(context).colorScheme.surface,
|
color: backgroundColor ?? Theme.of(context).colorScheme.surface,
|
||||||
borderRadius: BorderRadius.circular(12),
|
|
||||||
elevation: 1,
|
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
borderRadius: BorderRadius.circular(12),
|
borderRadius: BorderRadius.circular(12),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@@ -202,7 +200,6 @@ class PostItemCreator extends HookConsumerWidget {
|
|||||||
CloudFileList(
|
CloudFileList(
|
||||||
files: item.attachments,
|
files: item.attachments,
|
||||||
maxWidth: MediaQuery.of(context).size.width * 0.85,
|
maxWidth: MediaQuery.of(context).size.width * 0.85,
|
||||||
minWidth: MediaQuery.of(context).size.width * 0.9,
|
|
||||||
padding: EdgeInsets.only(top: 8),
|
padding: EdgeInsets.only(top: 8),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@@ -103,13 +103,18 @@ class SliverPostList extends HookConsumerWidget {
|
|||||||
Widget _buildPostItem(SnPost post) {
|
Widget _buildPostItem(SnPost post) {
|
||||||
switch (itemType) {
|
switch (itemType) {
|
||||||
case PostItemType.creator:
|
case PostItemType.creator:
|
||||||
return PostItemCreator(
|
return Column(
|
||||||
|
children: [
|
||||||
|
PostItemCreator(
|
||||||
item: post,
|
item: post,
|
||||||
backgroundColor: backgroundColor,
|
backgroundColor: backgroundColor,
|
||||||
padding: padding,
|
padding: padding,
|
||||||
isOpenable: isOpenable,
|
isOpenable: isOpenable,
|
||||||
onRefresh: onRefresh,
|
onRefresh: onRefresh,
|
||||||
onUpdate: onUpdate,
|
onUpdate: onUpdate,
|
||||||
|
),
|
||||||
|
const Divider(),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
case PostItemType.regular:
|
case PostItemType.regular:
|
||||||
return Card(
|
return Card(
|
||||||
|
Reference in New Issue
Block a user