Android Ios : "Comment out dart:html imports and usage in AiMessageBar"
This commit is contained in:
parent
ee342e8d18
commit
0b60cc7f87
|
|
@ -1,7 +1,7 @@
|
||||||
// ignore_for_file: library_private_types_in_public_api, avoid_web_libraries_in_flutter
|
// ignore_for_file: library_private_types_in_public_api, avoid_web_libraries_in_flutter
|
||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:html' as html;
|
// import 'dart:html' as html;
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
import 'package:audio_session/audio_session.dart';
|
import 'package:audio_session/audio_session.dart';
|
||||||
import 'package:didvan/config/design_config.dart';
|
import 'package:didvan/config/design_config.dart';
|
||||||
|
|
@ -627,12 +627,12 @@ class _AiMessageBarState extends State<AiMessageBar> {
|
||||||
.bytes; // Access the bytes property
|
.bytes; // Access the bytes property
|
||||||
String? name = result.files.first.name;
|
String? name = result.files.first.name;
|
||||||
|
|
||||||
final blob = html.Blob([bytes]);
|
// final blob = html.Blob([bytes]);
|
||||||
final blobUrl =
|
// final blobUrl =
|
||||||
html.Url.createObjectUrlFromBlob(blob);
|
// html.Url.createObjectUrlFromBlob(blob);
|
||||||
|
|
||||||
state.file = FilesModel(
|
state.file = FilesModel(
|
||||||
blobUrl, // No need for a file path on web
|
"", // No need for a file path on web
|
||||||
name: name,
|
name: name,
|
||||||
bytes: bytes,
|
bytes: bytes,
|
||||||
audio: true,
|
audio: true,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue