I just clone this repo and build.
It just give me the error below
Launching lib/main.dart on LM Q510N in debug mode...
Error: Couldn't resolve the package 'wifi_scan' in 'package:wifi_scan/wifi_scan.dart'.
: Error: Not found: 'package:wifi_scan/wifi_scan.dart'
import 'package:wifi_scan/wifi_scan.dart';
^
: Error: Type 'WiFiAccessPoint' not found.
List accessPoints = [];
^^^^^^^^^^^^^^^
: Error: Type 'WiFiAccessPoint' not found.
StreamSubscription<Result<List, GetScannedResultsErrors>>?
^^^^^^^^^^^^^^^
: Error: Type 'GetScannedResultsErrors' not found.
StreamSubscription<Result<List, GetScannedResultsErrors>>?
^^^^^^^^^^^^^^^^^^^^^^^
: Error: Type 'Result' not found.
StreamSubscription<Result<List, GetScannedResultsErrors>>?
: Error: Expected 0 type arguments.
StreamSubscription<Result<List, GetScannedResultsErrors>>?
^
: Error: Type 'WiFiAccessPoint' not found.
Result<List, GetScannedResultsErrors> result) {
^^^^^^^^^^^^^^^
: Error: Type 'GetScannedResultsErrors' not found.
Result<List, GetScannedResultsErrors> result) {
^^^^^^^^^^^^^^^^^^^^^^^
: Error: Type 'Result' not found.
Result<List, GetScannedResultsErrors> result) {
^^^^^^
: Error: Expected 0 type arguments.
Result<List, GetScannedResultsErrors> result) {
: Error: Type 'WiFiAccessPoint' not found.
Widget _buildAccessPointTile(BuildContext context, WiFiAccessPoint ap) {
: Error: Couldn't find constructor 'StandardMethodCodec'.
const MethodChannel(this.name, [this.codec = const StandardMethodCodec(), BinaryMessenger? binaryMessenger ])
^^^^^^^^^^^^^^^^^^^
: Error: Couldn't find constructor 'StandardMethodCodec'.
const OptionalMethodChannel(String name, [MethodCodec codec = const StandardMethodCodec(), BinaryMessenger? binaryMessenger])
^^^^^^^^^^^^^^^^^^^
: Error: Couldn't find constructor 'StandardMethodCodec'.
const EventChannel(this.name, [this.codec = const StandardMethodCodec(), BinaryMessenger? binaryMessenger])
^^^^^^^^^^^^^^^^^^^
: Error: Method not found: 'JSONMethodCodec'.
JSONMethodCodec(),
^^^^^^^^^^^^^^^
: Error: Method not found: 'JSONMethodCodec'.
JSONMethodCodec(),
^^^^^^^^^^^^^^^
: Error: Method not found: 'JSONMethodCodec'.
JSONMethodCodec(),
^^^^^^^^^^^^^^^
: Error: Method not found: 'JSONMessageCodec'.
JSONMessageCodec(),
^^^^^^^^^^^^^^^^
: Error: Method not found: 'StringCodec'.
StringCodec(),
^^^^^^^^^^^
: Error: Method not found: 'JSONMessageCodec'.
JSONMessageCodec(),
^^^^^^^^^^^^^^^^
: Error: Method not found: 'StandardMessageCodec'.
StandardMessageCodec(),
^^^^^^^^^^^^^^^^^^^^
: Error: Method not found: 'JSONMethodCodec'.
JSONMethodCodec(),
^^^^^^^^^^^^^^^
: Error: Method not found: 'JSONMethodCodec'.
JSONMethodCodec(),
^^^^^^^^^^^^^^^
: Error: 'WiFiAccessPoint' isn't a type.
List accessPoints = [];
^^^^^^^^^^^^^^^
: Error: 'WiFiAccessPoint' isn't a type.
List accessPoints = [];
^^^^^^^^^^^^^^^
: Error: 'WiFiAccessPoint' isn't a type.
StreamSubscription<Result<List, GetScannedResultsErrors>>?
^^^^^^^^^^^^^^^
: Error: 'GetScannedResultsErrors' isn't a type.
StreamSubscription<Result<List, GetScannedResultsErrors>>?
: Error: 'Result' isn't a type.
StreamSubscription<Result<List, GetScannedResultsErrors>>?
^^^^^^
: Error: 'WiFiAccessPoint' isn't a type.
Result<List, GetScannedResultsErrors> result) {
^^^^^^^^^^^^^^^
: Error: 'GetScannedResultsErrors' isn't a type.
Result<List, GetScannedResultsErrors> result) {
^^^^^^^^^^^^^^^^^^^^^^^
: Error: 'Result' isn't a type.
Result<List, GetScannedResultsErrors> result) {
: Error: 'WiFiAccessPoint' isn't a type.
setState(() => accessPoints = []);
: Error: The getter 'WiFiScan' isn't defined for the class '_MyAppState'.
-
'_MyAppState' is from 'package:flutter/src/services/message_codecs.dart' ('../../../../../sdk/flutter/packages/flutter/lib/src/services/message_codecs.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'WiFiScan'.
subscription = WiFiScan.instance.onScannedResultsAvailable
^^^^^^^^
: Error: 'WiFiAccessPoint' isn't a type.
Widget _buildAccessPointTile(BuildContext context, WiFiAccessPoint ap) {
^^^^^^^^^^^^^^^
: Error: 'WiFiAccessPoint' isn't a type.
setState(() => accessPoints = []);
^^^^^^^^^^^^^^^
: Error: The getter 'WiFiScan' isn't defined for the class '_MyAppState'.
-
'_MyAppState' is from 'package:flutter/src/services/message_codecs.dart' ('../../../../../sdk/flutter/packages/flutter/lib/src/services/message_codecs.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'WiFiScan'.
future: WiFiScan.instance.hasCapability(),
: Error: The getter 'WiFiScan' isn't defined for the class '_MyAppState'.
: Error: The getter 'WiFiScan' isn't defined for the class '_MyAppState'.
-
'_MyAppState' is from 'package:flutter/src/services/message_codecs.dart' ('../../../../../sdk/flutter/packages/flutter/lib/src/services/message_codecs.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'WiFiScan'.
await WiFiScan.instance.getScannedResults()),
^^^^^^^^
: Error: Couldn't find constructor 'StandardMessageCodec'.
return const StandardMessageCodec().decodeMessage(encoded) as Map<Object?, Object?>?;
^^^^^^^^^^^^^^^^^^^^
: Error: Couldn't find constructor 'StandardMessageCodec'.
final ByteData encoded = const StandardMessageCodec().encodeMessage(data)!;
^^^^^^^^^^^^^^^^^^^^
: Error: Couldn't find constructor 'StandardMessageCodec'.
const StandardMessageCodec().encodeMessage(object);
^^^^^^^^^^^^^^^^^^^^
: Error: Couldn't find constructor 'StandardMessageCodec'.
args != null ? const StandardMessageCodec().decodeMessage(args) : null,
^^^^^^^^^^^^^^^^^^^^
Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Awifi_scan%2Fwifi_scan.dart; message=StandardFileSystem only supports file:* and data:* URIs)
#0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7)
#1 asFileUri (package:vm/kernel_front_end.dart:623:37)
#2 writeDepfile (package:vm/kernel_front_end.dart:763:21)
#3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:586:9)
#4 starter (package:flutter_frontend_server/server.dart:85:12)
#5 main (file:///opt/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:13:24)
FAILURE: Build failed with an exception.
Process 'command '/Users/kevin/sdk/flutter/bin/flutter'' finished with non-zero exit value 1
BUILD FAILED in 10s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)