fluttercommunity / fluttercommunity/flutter_downloader

Cannot access 'flutterLoader': it is private in 'FlutterInjector'

Open
#843 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Kotlin
Stars
940
Forks
561
Avg merge
1h 18m
Merged PRs (30d)
1

Description

**Describe the bug**

- In Flutter version 3.7.9, FlutterInjector.instance().flutterLoader became FlutterInjector.instance().flutterLoader()
- Your code at file DownloaderWorker.kt:
```kotlin
val appBundlePath: String =
FlutterInjector.instance().flutterLoader.findAppBundlePath()
```

**To Reproduce**

Steps to reproduce the behavior:

1. Use plugin version 1.10.2, Flutter stable 3.7.9
2. Build android app bundle

**Expected behavior**

**Screenshots**

**Desktop (please complete the following information):**

- OS: MacOS
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Device information:**

- Device: Any Android device
- OS: any
- plugin version 1.10.2

**Additional context**

[✓] Flutter (Channel stable, 3.7.9, on macOS 13.2.1 22D68 darwin-arm64, locale en-VN)
• Flutter version 3.7.9 on channel stable at /Users/reputa/fvm/versions/stable
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 62bd79521d (3 days ago), 2023-03-30 10:59:36 -0700
• Engine revision ec975089ac
• Dart version 2.19.6
• DevTools version 2.20.1

**Workaround**

- Edit file DownloadWorker.kt, replace FlutterInjector.instance().flutterLoader.findAppBundlePath() with FlutterInjector.instance().flutterLoader().findAppBundlePath()

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.