Skip to content

Commit

Permalink
content [nfc]: Decompose Container in MessageImage
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpengi committed Feb 9, 2024
1 parent 2744d46 commit f73df57
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions lib/widgets/content.dart
Original file line number Diff line number Diff line change
Expand Up @@ -259,16 +259,17 @@ class MessageImage extends StatelessWidget {
// The corresponding element on web has a 5px two-sided margin…
// and then a 1px transparent border all around.
padding: const EdgeInsets.fromLTRB(1, 1, 6, 6),
child: Container(
height: 100,
width: 150,
child: ColoredBox(
color: const Color.fromRGBO(0, 0, 0, 0.03),
child: LightboxHero(
message: message,
src: resolvedSrc,
child: RealmContentNetworkImage(
resolvedSrc,
filterQuality: FilterQuality.medium))))));
child: SizedBox(
height: 100,
width: 150,
child: LightboxHero(
message: message,
src: resolvedSrc,
child: RealmContentNetworkImage(
resolvedSrc,
filterQuality: FilterQuality.medium)))))));
}
}

Expand Down

0 comments on commit f73df57

Please sign in to comment.