finish up for today
This commit is contained in:
parent
7d4b3160a8
commit
5c4a28765c
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue