Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type error Future<List<BluetoothDevice>> when importing flutter_ftms #17

Closed
basvdijk opened this issue Nov 29, 2024 · 2 comments · Fixed by #18
Closed

Type error Future<List<BluetoothDevice>> when importing flutter_ftms #17

basvdijk opened this issue Nov 29, 2024 · 2 comments · Fixed by #18

Comments

@basvdijk
Copy link
Contributor

basvdijk commented Nov 29, 2024

When I use import 'package:flutter_ftms/flutter_ftms.dart'; not call any function, and run flutter build ios I get:

Error (Xcode): ../../../.pub-cache/hosted/pub.dev/flutter_ftms-1.1.2/lib/src/bluetooth.dart:25:12: Error: A value of
type 'Future<List<BluetoothDevice>> Function(List<Guid>)' can't be returned from an async function with return type
'Future<List<BluetoothDevice>>'.

flutter clean followed by flutter pub get did not help.

Any ideas on what could cause this?

Steps to reproduce

  • Create new project flutter create .
  • Add flutter_ftms flutter pub add flutter_ftms
  • Add import line import 'package:flutter_ftms/flutter_ftms.dart'; on top of main.dart
  • Run: flutter build ios
@Malte2036 Malte2036 linked a pull request Dec 3, 2024 that will close this issue
@Malte2036
Copy link
Owner

Should be fixed in flutter_ftms: 1.1.3

@basvdijk
Copy link
Contributor Author

basvdijk commented Dec 4, 2024

@Malte2036 yes it builds now! Thanks for your quick fixing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants