feat(ios): add ios shortcuts support

This commit is contained in:
cogwheel0
2025-11-25 00:08:51 +05:30
parent 0ab2619049
commit 2d88519abe
14 changed files with 792 additions and 46 deletions

View File

@@ -4,16 +4,16 @@ import '../theme/theme_extensions.dart';
import 'user_avatar.dart';
/// Displays a model's avatar image with automatic caching and fallback UI.
///
///
/// The avatar can display:
/// - Network images from the OpenWebUI model avatar endpoint
/// - Data URIs (base64-encoded images)
/// - A fallback UI showing the first letter of the model name or a brain icon
///
///
/// Images are automatically cached using [CachedNetworkImage] with proper
/// authentication headers. The cache respects self-signed certificates if
/// configured.
///
///
/// Usage:
/// ```dart
/// final avatarUrl = resolveModelIconUrlForModel(apiService, model);
@@ -22,11 +22,11 @@ import 'user_avatar.dart';
class ModelAvatar extends StatelessWidget {
/// The size (width and height) of the avatar in logical pixels.
final double size;
/// The URL of the avatar image. Should be obtained via
/// [resolveModelIconUrlForModel] to use the correct OpenWebUI endpoint.
final String? imageUrl;
/// The model name, used for the fallback UI (shows first letter).
final String? label;