Platformní kanály jsou Flutterovým mechanismem pro komunikaci mezi kódem v Dartu a nativním kódem platformy (iOS/Android) — umožňují Flutteru přístup k nativním funkcím nebo existujícímu nativnímu kódu, který není dostupný prostřednictvím balíčků Dartu. Vytváří most mezi Flutterem a základní platformou.
Proč platformní kanály existují
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.
