utils/image_utils library

Constants

Default MediaSFU logo — network URL.
kDefaultMediaSFULogoAsset → const String
Fallback local asset path for the MediaSFU logo (works offline / release builds).

Functions

buildLogoCircle(String source, {double radius = 50}) Widget
Builds a circular logo widget that tries the network image first, then falls back to the bundled asset if it fails.
buildMediasfuImage(String source, {double? width, double? height, BoxFit? fit}) Widget
Returns an Image widget that handles both network URLs and local assets. Falls back to the bundled asset if the network image fails.
resolveImageSource(String source) ImageProvider<Object>
Returns an ImageProvider that handles both network URLs and local assets.