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

Leopard Issue: Flutter Demo on Windows #411

Open
2 tasks done
JohnathanKGuru opened this issue Jan 15, 2025 · 1 comment
Open
2 tasks done

Leopard Issue: Flutter Demo on Windows #411

JohnathanKGuru opened this issue Jan 15, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JohnathanKGuru
Copy link

Have you checked the docs and existing issues?

  • I have read all of the relevant Picovoice Leopard docs
  • I have searched the existing issues for Leopard

SDK

Flutter

Leopard package version

2.0.3

Framework version

Flutter 3.27.2, dart 3.6.1

Platform

Android

OS/Browser version

Windows 10

Describe the bug

You cannot run the prepare_demo.dart file. Instead of using
dirname(Platform.script.path)
On lines 7,9, and 12, you need to use
dirname(Platform.script.toFilePath(windows: true)
(of course this is specifically on a windows test case, what it actually should do is check if it is on windows, then set windows to that boolean value)

(also you have to run the shell command copy_test_resources.sh manually, and this isnt in the documentation anywhere)

Steps To Reproduce

  1. clone the repo locally
  2. try to run prepare_demo.dart file

Expected Behavior

I was thinking I should be able to run the demo preparer, and be able to configure the demo environment easily

@JohnathanKGuru JohnathanKGuru added the bug Something isn't working label Jan 15, 2025
@albho albho self-assigned this Jan 16, 2025
@albho
Copy link
Contributor

albho commented Jan 16, 2025

Hey @JohnathanKGuru, thanks for the report. I've managed to reproduce this, and will let the team know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants