Compare commits
3 commits
a7ccf0ff00
...
621bb74cc9
| Author | SHA1 | Date | |
|---|---|---|---|
|
621bb74cc9 |
|||
|
33c3a568f9 |
|||
|
561f6ecc84 |
3 changed files with 11 additions and 6 deletions
|
|
@ -30,6 +30,7 @@ class AvatarOrHash extends ConsumerWidget {
|
||||||
color: ColorHash(title).color,
|
color: ColorHash(title).color,
|
||||||
child: Center(child: Text(title.isEmpty ? "" : title[0])),
|
child: Center(child: Text(title.isEmpty ? "" : title[0])),
|
||||||
);
|
);
|
||||||
|
|
||||||
final parsedAvatar = avatar?.mxcToHttps(
|
final parsedAvatar = avatar?.mxcToHttps(
|
||||||
ref.watch(
|
ref.watch(
|
||||||
ClientStateController.provider.select(
|
ClientStateController.provider.select(
|
||||||
|
|
@ -38,6 +39,7 @@ class AvatarOrHash extends ConsumerWidget {
|
||||||
) ??
|
) ??
|
||||||
"",
|
"",
|
||||||
);
|
);
|
||||||
|
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
width: height,
|
width: height,
|
||||||
height: height,
|
height: height,
|
||||||
|
|
@ -62,8 +64,8 @@ class AvatarOrHash extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
fit: .cover,
|
fit: .cover,
|
||||||
loadingBuilder: (_, child, loadingProgress) =>
|
loadingBuilder: (_, child, loadingProgress) =>
|
||||||
loadingProgress == null ? child : box,
|
loadingProgress == null ? child : fallback ?? box,
|
||||||
errorBuilder: (_, _, _) => box,
|
errorBuilder: (_, _, _) => fallback ?? box,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,12 @@ class ExpandableImage extends ConsumerWidget {
|
||||||
builder: (context, constraints) => Dialog(
|
builder: (context, constraints) => Dialog(
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
insetPadding: .all(constraints.maxWidth / 100),
|
insetPadding: .all(constraints.maxWidth / 100),
|
||||||
child: ConstrainedBox(
|
child: InteractiveViewer(
|
||||||
constraints: .new(minWidth: min(constraints.maxWidth, 1000)),
|
maxScale: 5,
|
||||||
child: InteractiveViewer(
|
child: ConstrainedBox(
|
||||||
|
constraints: .new(
|
||||||
|
minWidth: min(constraints.maxWidth, 1000),
|
||||||
|
),
|
||||||
child: Image(
|
child: Image(
|
||||||
fit: .contain,
|
fit: .contain,
|
||||||
errorBuilder: (_, error, stackTrace) => ErrorDialog(
|
errorBuilder: (_, error, stackTrace) => ErrorDialog(
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ flutter.buildFlutterApplication {
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -D assets/icon.svg $out/share/icons/hicolor/scalable/apps/nexus.svg
|
install -D assets/icon.svg $out/share/icons/hicolor/scalable/apps/nexus.svg
|
||||||
install -Dm755 linux/nexus.federated.Nexus.desktop -t $out/share/applications
|
install -Dm755 linux/nexus.federated.Nexus.desktop -t $out/share/applications
|
||||||
wrapProgram $out/bin/nexus \
|
wrapProgram $out/bin/nexus \
|
||||||
--suffix LD_LIBRARY_PATH : $out/app/nexus/lib
|
--suffix LD_LIBRARY_PATH : $out/app/nexus/lib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue