flutter_downloader icon indicating copy to clipboard operation
flutter_downloader copied to clipboard

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

Open hunghuy201280 opened this issue 1 year ago • 0 comments

Describe the bug

  • In Flutter version 3.7.9, FlutterInjector.instance().flutterLoader became FlutterInjector.instance().flutterLoader()
  • Your code at file DownloaderWorker.kt:
                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()

hunghuy201280 avatar Apr 03 '23 04:04 hunghuy201280