diff --git a/CHANGELOG.md b/CHANGELOG.md index eb16ee0..8145928 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ ## Version 0.13.0 (beta) * Changes + * Removed post's borders to give a little extra room and added Dividers between posts in timelines + * Removed unnecessary padding from Post/Comment Viewer screen * Fixes * New Features diff --git a/lib/controls/timeline/flattened_tree_entry_control.dart b/lib/controls/timeline/flattened_tree_entry_control.dart index 8214c9e..a7d6d78 100644 --- a/lib/controls/timeline/flattened_tree_entry_control.dart +++ b/lib/controls/timeline/flattened_tree_entry_control.dart @@ -107,21 +107,25 @@ class _StatusControlState extends State { body = buildMainWidgetBody(context); } + final decoration = isPost + ? BoxDecoration() + : BoxDecoration( + color: color, + border: Border.all(width: 0.5), + borderRadius: BorderRadius.circular(5.0), + boxShadow: [ + BoxShadow( + color: Theme.of(context).dividerColor, + blurRadius: 2, + offset: const Offset(4, 4), + spreadRadius: 0.1, + blurStyle: BlurStyle.normal, + ) + ], + ); + final bodyCard = Container( - decoration: BoxDecoration( - color: color, - border: Border.all(width: 0.5), - borderRadius: BorderRadius.circular(5.0), - boxShadow: [ - BoxShadow( - color: Theme.of(context).dividerColor, - blurRadius: 2, - offset: const Offset(4, 4), - spreadRadius: 0.1, - blurStyle: BlurStyle.normal, - ) - ], - ), + decoration: decoration, child: body, ); return Padding( diff --git a/lib/controls/timeline/timeline_panel.dart b/lib/controls/timeline/timeline_panel.dart index cbd0720..1b5d5a4 100644 --- a/lib/controls/timeline/timeline_panel.dart +++ b/lib/controls/timeline/timeline_panel.dart @@ -80,9 +80,13 @@ class TimelinePanel extends StatelessWidget { update(context, manager); return; }, - child: ScrollablePositionedList.builder( + child: ScrollablePositionedList.separated( itemScrollController: controller, physics: const AlwaysScrollableScrollPhysics(), + separatorBuilder: (context, index) => + index == 0 || index == items.length + ? const SizedBox() + : const Divider(), itemBuilder: (context, index) { if (index == 0) { return TextButton( diff --git a/lib/screens/post_screen.dart b/lib/screens/post_screen.dart index c8d9a24..3bf22e6 100644 --- a/lib/screens/post_screen.dart +++ b/lib/screens/post_screen.dart @@ -68,7 +68,7 @@ class _PostScreenState extends State { return Scaffold( appBar: StandardAppBar.build(context, 'View Post', actions: []), body: Padding( - padding: const EdgeInsets.all(8.0), + padding: const EdgeInsets.all(0.0), child: Column( children: [ StandardLinearProgressIndicator(nss.timelineLoadingStatus),