Hi, I'm new to flutter. I want to make an SMS app without the need for internet connectivity. Suggest me some packages regarding this..
I used flutter_sms... This is my code
The error is
Using hardware rendering with device AOSP on IA Emulator. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib\main.dart on AOSP on IA Emulator in debug mode...
Compiler message:
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.0.1+2/lib/src/flutter_sms_platform.dart:3:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
Plugin project :url_launcher_web not found. Please update settings.gradle.
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.0.1+2/lib/src/flutter_sms_platform.dart:90:27: Error: Getter not found: 'window'.
final _agent = html.window.navigator.userAgent;
^^^^^^
Note: C:\flutter.pub-cache\hosted\pub.dartlang.org\android_intent-0.3.7+2\android\src\main\java\io\flutter\plugins\androidintent\MethodCallHandlerImpl.java uses unchecked or
unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Invalid depfile: C:\Users\ABINAV\Desktop\receive.dart_tool\flutter_build\8ce715169fee625519bd32553d875ab6\kernel_snapshot.d
Invalid depfile: C:\Users\ABINAV\Desktop\receive.dart_tool\flutter_build\8ce715169fee625519bd32553d875ab6\kernel_snapshot.d
Compiler message:
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.0.1+2/lib/src/flutter_sms_platform.dart:3:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sms-2.0.1+2/lib/src/flutter_sms_platform.dart:90:27: Error: Getter not found: 'window'.
final _agent = html.window.navigator.userAgent;
^^^^^^
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ah
tml; message=StandardFileSystem only supports file:* and data:* URIs)
#0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:33:7)
#1 asFileUri (package:vm/kernel_front_end.dart:567:37)
#2 writeDepfile (package:vm/kernel_front_end.dart:760:21)
#3 FrontendCompiler.compile (package:frontend_server/fro
ntend_server.dart:539:15)
#4 _FlutterFrontendCompiler.compile (package:flutter_frontend_server/server.dart:40:22)
#5 starter (package:flutter_frontend_server/server.dart:178:27)
#6 main (file:///C:/b/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:8:30)
#7 _startIsolate. (dart:isolate-patch/isolate_patch.dart:299:32)
#8 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
FAILURE: Build failed with an exception.
Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 882
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 34s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 35.9s
Exception: Gradle task assembleDebug failed with exit code 1
Can you help me to clear this or suggest other packages with reference code
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/5a6dfda5-9580-4b09-bf4b-b6f95b7f1f83o%40googlegroups.com.