Platform channels
Every platform channel is an API between two codebases written in different languages, often by different people. Treat it like one.
One named channel per surface. By the end of the Third Wave Coffee migration there were 13. Traffic ran both ways. Flutter asked native for request headers, to add an item to the cart or to dismiss a sheet, since native owned navigation. Native told Flutter when to refresh a section, and when the user logged in or out. A channel per surface keeps each one small, and a change to one feature stays out of the others.
Define every name once. Channel and method names are constants, defined once in each language and never typed inline. A typo should fail a review, not a user.
Fail loudly. Every handler logs method calls it does not recognise instead of silently dropping them, so a name that drifts between Dart and native shows up on the first run. On the Dart side, expect two failures: PlatformException, when native returns an error, and MissingPluginException, when Dart calls before native has registered a handler. Handle both; do not let either reach the user as a crash.
Keep handlers fast. Native handlers run on the main thread. Anything slow, like disk or network work, moves off it, or the app stutters while Flutter waits.
One side owns the session. Native kept login and tokens. On load, the Flutter side asked over a channel for the request headers it needed, instead of running a second auth flow that could drift from the first.
Count the languages. Each new channel means code in Dart, Kotlin and Swift, which is the real price of a channel and the reason to keep their number low. Past a handful of methods, a generator like Pigeon helps: it writes all three sides from one Dart definition, so the names and types cannot drift.
Related: Flutter add-to-app.