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

1.0.0 Example Code needs a few tweaks and fails Task.fromJson #161

Open
kiwicmc opened this issue Mar 26, 2025 · 0 comments
Open

1.0.0 Example Code needs a few tweaks and fails Task.fromJson #161

kiwicmc opened this issue Mar 26, 2025 · 0 comments

Comments

@kiwicmc
Copy link

kiwicmc commented Mar 26, 2025

I like this component, but need to supply it with Survey questions externally.

To get to work with the hardcoded survey I needed to do the following:

Had to download app_bar_example.dart from git
Changed to https for video file: 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
Added assets directory and downloaded example_json.json and fancy_checkmark.json from repo
Add assets to pubspec.yaml
Works with hard coded getSampleTask
When I try to load the JSON example for getJsonTask throws Exception

Image

flutter doctor -v
[✓] Flutter (Channel stable, 3.29.2, on macOS 13.6 22G120 darwin-arm64, locale en-NZ) [444ms]
    • Flutter version 3.29.2 on channel stable at /Users/chris/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c236373904 (12 days ago), 2025-03-13 16:17:06 -0400
    • Engine revision 18b71d647a
    • Dart version 3.7.2
    • DevTools version 2.42.3

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [484ms]
    • Android SDK at /Users/chris/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/to/macos-android-setup for more details.

[!] Xcode - develop for iOS and macOS (Xcode 15.2) [1,053ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C500b
    ! CocoaPods 1.14.2 out of date (1.16.2 is recommended).
        CocoaPods is a package manager for iOS or macOS platform code.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/to/platform-plugins
      To update CocoaPods, see https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods

[✓] Chrome - develop for the web [153ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed) [153ms]
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/to/macos-android-setup for detailed instructions).

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.7) [153ms]
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 79.0.1
    • Dart plugin version 232.10313

[✓] IntelliJ IDEA Ultimate Edition (version 2024.3.5) [64ms]
    • IntelliJ at /Applications/IntelliJ IDEA 2024.app
    • Flutter plugin version 83.0.4
    • Dart plugin version 243.26053.17

[✓] Connected device (5 available) [6.8s]
    • SM A105G (mobile)               • RF8M61TGCRL                          • android-arm    • Android 11 (API 30)
    • iPhone 15 Pro (mobile)          • 0044387B-1B6E-4F5D-979B-0637D6BCE451 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-2 (simulator)
    • macOS (desktop)                 • macos                                • darwin-arm64   • macOS 13.6 22G120 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                • darwin         • macOS 13.6 22G120 darwin-arm64
    • Chrome (web)                    • chrome                               • web-javascript • Google Chrome 134.0.6998.166
! Error: Browsing on the local area network for iPhone XS. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
  The device must be opted into Developer Mode to connect wirelessly. (code -27)
! Error: Browsing on the local area network for iPhone 13 Mini. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
  The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources [484ms]
• All expected network resources are available.

@ChrisMICDUP ChrisMICDUP marked this as a duplicate of #160 Mar 26, 2025
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

No branches or pull requests

1 participant