finish up for today

This commit is contained in:
zoe 2022-09-24 00:30:49 +02:00
parent 7d4b3160a8
commit 5c4a28765c
2 changed files with 9 additions and 7 deletions

View File

@ -127,7 +127,7 @@ class Settings {
settings.activeIdentity = settings.identities.keys.first;
}
settings.postWidth = settings.prefs.getDouble(postWidthKey) ?? 0.8;
settings.postWidth = settings.prefs.getDouble(postWidthKey) ?? 1.0;
settings.maxPostWidth = settings.prefs.getDouble(maxPostWidthKey) ?? 1000;
final themename = settings.prefs.getString(themeKey);

View File

@ -36,12 +36,14 @@ class ImageAttachmentDisplay extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
Image.network(
model.url,
errorBuilder: ((context, error, stackTrace) => const Icon(Icons.error)),
width: double.infinity,
fit: BoxFit.fitWidth,
),
if (!model.url.endsWith("original"))
Image.network(
model.url,
errorBuilder: ((context, error, stackTrace) =>
const Icon(Icons.error)),
width: double.infinity,
fit: BoxFit.fitWidth,
),
const SizedBox(
height: 4,
),