Kanały platformy (platform channels) to mechanizm komunikacji Flutter pomiędzy kodem Dart a natywnym kodem platformy (iOS/Android) — umożliwiając Flutter dostęp do natywnych funkcji lub istniejącego kodu natywnego niedostępnego przez pakiety Dart. Stanowią most między Flutter a bazową platformą.
Dlaczego to ważne
Flutter (Dart) can't directly access every native platform feature. Platform channels
let Dart call NATIVE code (Kotlin/Java on Android, Swift/Objective-C on iOS):
→ access native APIs/SDKs not covered by existing plugins
→ use existing native libraries or platform-specific functionality
→ integrate with native code in a hybrid app
→ The bridge between Flutter and the native platform.
