Use ImageControl for link preview and HTML embedded images since has Low-bandwidth awareness

This commit is contained in:
Hank Grabowski 2024-09-03 20:37:50 -04:00
parent 90efcca73b
commit 755bf9b425
4 changed files with 26 additions and 16 deletions

View file

@ -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

View file

@ -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(

View file

@ -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(

View file

@ -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),