我是非常新的颤振和尝试安装这个软件包提前输入1.8.7。即使在运行flutter pub get之后,在我的代码中使用它时也会出现以下错误。请告诉我我能从哪里开始诊断。
Compiler message:
Error: Could not resolve the package 'flutter_typeahead' in 'package:flutter_typeahead/flutter_typeahead.dart'.
lib/screens/home_screen.dart:10:8: Error: Not found: 'package:flutter_typeahead/flutter_typeahead.dart'
import 'package:flutter_typeahead/flutter_typeahead.dart';
^
lib/screens/home_screen.dart:171:22: Error: The method 'TypeAheadField' isn't defined for the class '_HomeScreenState'.
- '_HomeScreenState' is from 'package:Arriv/screens/home_screen.dart' ('lib/screens/home_screen.dart').
Try correcting the name to the name of an existing method, or defining a method named 'TypeAheadField'.
child: TypeAheadField(
^^^^^^^^^^^^^^发布于 2020-08-13 17:25:13
我刚刚停止运行我的应用程序,并在模拟器上重新运行它。错误消失了。我太沉迷于热重装,我甚至想不出这个选择有一段时间。:P
https://stackoverflow.com/questions/63395584
复制相似问题