mirror of
https://gitlab.com/mysocialportal/relatica
synced 2024-10-18 10:03:31 +00:00
Use ImageControl for link preview and HTML embedded images since has Low-bandwidth awareness
This commit is contained in:
parent
90efcca73b
commit
755bf9b425
4 changed files with 26 additions and 16 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -107,8 +107,9 @@ class _StatusControlState extends State<FlattenedTreeEntryControl> {
|
|||
body = buildMainWidgetBody(context);
|
||||
}
|
||||
|
||||
final bodyCard = Container(
|
||||
decoration: BoxDecoration(
|
||||
final decoration = isPost
|
||||
? BoxDecoration()
|
||||
: BoxDecoration(
|
||||
color: color,
|
||||
border: Border.all(width: 0.5),
|
||||
borderRadius: BorderRadius.circular(5.0),
|
||||
|
@ -121,7 +122,10 @@ class _StatusControlState extends State<FlattenedTreeEntryControl> {
|
|||
blurStyle: BlurStyle.normal,
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
final bodyCard = Container(
|
||||
decoration: decoration,
|
||||
child: body,
|
||||
);
|
||||
return Padding(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -68,7 +68,7 @@ class _PostScreenState extends State<PostScreen> {
|
|||
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),
|
||||
|
|
Loading…
Reference in a new issue