Platformski kanali su Flutter mehanizam za komunikaciju između Dart koda i nativnog koda platforme (iOS/Android) — omogućujući Flutter-u pristup nativnim mogućnostima ili postojećem nativnom kodu koji nije dostupan kroz Dart pakete. Oni mostie Flutter sa osnovnom platformom.
Zašto platformski kanali postoje
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.
