Error: Type ‘Completer’ not found. Error in latest flutter version : Flutter 1.17.0 • channel stable
Posted by
Dharmendra Kumar, Senior Software Engineer & Co founder at MyhospitalNow
–
Error:
lib/main.dart:25:8: Error: Type 'Completer' not found.
final Completer<WebViewController> _controller = Completer<WebViewController>();
^^^^^^^^^
lib/main.dart:25:8: Error: 'Completer' isn't a type.
final Completer<WebViewController> _controller = Completer<WebViewController>();
^^^^^^^^^
lib/main.dart:25:51: Error: Method not found: 'Completer'.
final Completer<WebViewController> _controller = Completer<WebViewController>();
^^^^^^^^^
Sulotion:
It is evident from the error message that the Completer class cannot be located. Since this class is a component of the dart:async library, import it first in your Dart file:
import 'dart:async';
A version mismatch between your Flutter SDK and the dart:async library may be the cause of the problem if you have already imported dart:async. Try updating to the most recent version of the Flutter SDK:
flutter upgrade
Then, try running your project again:
flutter run
Dharmendra Kumar, Senior Software Engineer & Co founder at MyhospitalNow
Experienced software developer proficient in HTML, CSS, and Bootstrap for crafting elegant and responsive user interfaces.
Skilled in Laravel and PHP, with a focus on building robust and scalable web applications.
Proficient in JavaScript for both frontend and backend development, leveraging frameworks like React and Vue.js.
Experienced in designing and consuming RESTful APIs to enable seamless communication between client and server.
Expertise in integrating payment gateways such as PayPal, Stripe, and Paytm for secure online transactions.
Familiar with Flutter, enabling the creation of natively compiled applications for mobile, web, and desktop.
Proficient in Android Studio, the primary IDE for developing Android applications.
Knowledgeable in Linux and Docker for efficient server management and application deployment.
Experienced in using Redis as an in-memory data structure store, enhancing application performance.
Passionate about staying updated with the latest technologies and continuously learning to deliver high-quality solutions.