mirror of
https://gitlab.com/mysocialportal/relatica
synced 2024-10-18 12:23: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)
|
## Version 0.13.0 (beta)
|
||||||
|
|
||||||
* Changes
|
* 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
|
* Fixes
|
||||||
* New Features
|
* New Features
|
||||||
|
|
||||||
|
|
|
@ -107,8 +107,9 @@ class _StatusControlState extends State<FlattenedTreeEntryControl> {
|
||||||
body = buildMainWidgetBody(context);
|
body = buildMainWidgetBody(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
final bodyCard = Container(
|
final decoration = isPost
|
||||||
decoration: BoxDecoration(
|
? BoxDecoration()
|
||||||
|
: BoxDecoration(
|
||||||
color: color,
|
color: color,
|
||||||
border: Border.all(width: 0.5),
|
border: Border.all(width: 0.5),
|
||||||
borderRadius: BorderRadius.circular(5.0),
|
borderRadius: BorderRadius.circular(5.0),
|
||||||
|
@ -121,7 +122,10 @@ class _StatusControlState extends State<FlattenedTreeEntryControl> {
|
||||||
blurStyle: BlurStyle.normal,
|
blurStyle: BlurStyle.normal,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
);
|
||||||
|
|
||||||
|
final bodyCard = Container(
|
||||||
|
decoration: decoration,
|
||||||
child: body,
|
child: body,
|
||||||
);
|
);
|
||||||
return Padding(
|
return Padding(
|
||||||
|
|
|
@ -80,9 +80,13 @@ class TimelinePanel extends StatelessWidget {
|
||||||
update(context, manager);
|
update(context, manager);
|
||||||
return;
|
return;
|
||||||
},
|
},
|
||||||
child: ScrollablePositionedList.builder(
|
child: ScrollablePositionedList.separated(
|
||||||
itemScrollController: controller,
|
itemScrollController: controller,
|
||||||
physics: const AlwaysScrollableScrollPhysics(),
|
physics: const AlwaysScrollableScrollPhysics(),
|
||||||
|
separatorBuilder: (context, index) =>
|
||||||
|
index == 0 || index == items.length
|
||||||
|
? const SizedBox()
|
||||||
|
: const Divider(),
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
return TextButton(
|
return TextButton(
|
||||||
|
|
|
@ -68,7 +68,7 @@ class _PostScreenState extends State<PostScreen> {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: StandardAppBar.build(context, 'View Post', actions: []),
|
appBar: StandardAppBar.build(context, 'View Post', actions: []),
|
||||||
body: Padding(
|
body: Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(0.0),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
StandardLinearProgressIndicator(nss.timelineLoadingStatus),
|
StandardLinearProgressIndicator(nss.timelineLoadingStatus),
|
||||||
|
|
Loading…
Reference in a new issue