Browse Source

Merge pull request #1006 from nextcloud/fix/neon_dashboard/empty-widget-item-icons

fix(neon_dashboard): Fix empty widget item icon urls
pull/1011/head
Kate 1 year ago committed by GitHub
parent
commit
fcbe8c1f28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      packages/neon/neon_dashboard/lib/src/widgets/widget_item.dart

7
packages/neon/neon_dashboard/lib/src/widgets/widget_item.dart

@ -25,9 +25,14 @@ class DashboardWidgetItem extends StatelessWidget {
dimension: largeIconSize, dimension: largeIconSize,
child: NeonImageWrapper( child: NeonImageWrapper(
borderRadius: roundIcon ? BorderRadius.circular(largeIconSize) : null, borderRadius: roundIcon ? BorderRadius.circular(largeIconSize) : null,
child: NeonUrlImage( child: item.iconUrl.isNotEmpty
? NeonUrlImage(
url: item.iconUrl, url: item.iconUrl,
size: const Size.square(largeIconSize), size: const Size.square(largeIconSize),
)
: Icon(
Icons.question_mark,
color: Theme.of(context).colorScheme.error,
), ),
), ),
); );

Loading…
Cancel
Save