diff --git a/lib/views/ai/widgets/ai_message_bar.dart b/lib/views/ai/widgets/ai_message_bar.dart index 36f44d6..4816e9a 100644 --- a/lib/views/ai/widgets/ai_message_bar.dart +++ b/lib/views/ai/widgets/ai_message_bar.dart @@ -1,7 +1,7 @@ // ignore_for_file: library_private_types_in_public_api, avoid_web_libraries_in_flutter import 'dart:async'; -import 'dart:html' as html; +// import 'dart:html' as html; import 'dart:io'; import 'package:audio_session/audio_session.dart'; import 'package:didvan/config/design_config.dart'; @@ -627,12 +627,12 @@ class _AiMessageBarState extends State { .bytes; // Access the bytes property String? name = result.files.first.name; - final blob = html.Blob([bytes]); - final blobUrl = - html.Url.createObjectUrlFromBlob(blob); + // final blob = html.Blob([bytes]); + // final blobUrl = + // html.Url.createObjectUrlFromBlob(blob); state.file = FilesModel( - blobUrl, // No need for a file path on web + "", // No need for a file path on web name: name, bytes: bytes, audio: true,