dart Isolate listen don't triggered (or work)

Issue My class: import ‘dart:isolate’; import ‘dart:ui’; import ‘package:flutter_downloader/flutter_downloader.dart’; class SettingsPage extends StatefulWidget with WidgetsBindingObserver { SettingsPage({Key? key}) : super(key: key); @override State<SettingsPage> createState() => _SettingsPageState(); } class _SettingsPageState extends State<SettingsPage> { final ReceivePort _port = ReceivePort(); int uploadProgress =

Continue reading

How do I fix this Sentry Zone mismatch error?

Issue Framework / SDK versions: Flutter: 3.10.4 Dart: 3.0.3 Here goes my main() code: Future<void> main() async { //debugPaintSizeEnabled = true; //BindingBase.debugZoneErrorsAreFatal = true; WidgetsFlutterBinding.ensureInitialized(); EasyLocalization.ensureInitialized() .then((value) => Fimber.plantTree(DebugTree())) .then((value) => SentryFlutter.init( (options) { options.dsn = ‘***’; // Set tracesSampleRate

Continue reading

Using Isolate to call a function

Issue I am running a test on using isolate to call function, below is my code import ‘dart:isolate’; import ‘package:flutter/material.dart’; void main() async { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return

Continue reading

Dart Error: Dart_LookupLibrary: library 'package:background_fetch/background_fetch.dart' not found

Issue How can I solve this problem: E/flutter (18287): [ERROR:flutter/shell/common/shell.cc(89)] Dart Error: Dart_LookupLibrary: library ‘package:background_fetch/background_fetch.dart’ not found. E/flutter (18287): [ERROR:flutter/runtime/dart_isolate.cc(668)] Could not resolve main entrypoint function. E/flutter (18287): [ERROR:flutter/runtime/dart_isolate.cc(168)] Could not run the run main Dart entrypoint. E/flutter (18287): [ERROR:flutter/runtime/runtime_controller.cc(389)]

Continue reading