fix: Minor desktop fixes
This commit is contained in:
parent
65baf17db8
commit
94917a41c9
5 changed files with 21 additions and 7 deletions
|
|
@ -11,12 +11,14 @@ class ContentBanner extends StatelessWidget {
|
|||
final IconData defaultIcon;
|
||||
final bool loading;
|
||||
final Function onEdit;
|
||||
final Client client;
|
||||
|
||||
const ContentBanner(this.mxContent,
|
||||
{this.height = 400,
|
||||
this.defaultIcon = Icons.people_outline,
|
||||
this.loading = false,
|
||||
this.onEdit,
|
||||
this.client,
|
||||
Key key})
|
||||
: super(key: key);
|
||||
|
||||
|
|
@ -26,7 +28,7 @@ class ContentBanner extends StatelessWidget {
|
|||
final bannerSize =
|
||||
(mediaQuery.size.width * mediaQuery.devicePixelRatio).toInt();
|
||||
final src = mxContent?.getThumbnail(
|
||||
Matrix.of(context).client,
|
||||
client ?? Matrix.of(context).client,
|
||||
width: bannerSize,
|
||||
height: bannerSize,
|
||||
method: ThumbnailMethod.scale,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue