Tag

MethodChannel

1 views collected around this technical thread.

Xianyu Technology
Xianyu Technology
Mar 31, 2023 · Mobile Development

Flutter: Mocking MethodChannel for Unit Tests, Retrieving Keyboard Height, and Quick Guide Bubbles

This guide explains how to mock Flutter MethodChannels for unit testing using TestDefaultBinaryMessenger, capture the maximum keyboard height across iOS and Android by tracking viewInsets in didChangeMetrics, and quickly create new‑user guide bubbles with OverlayEntry by calculating a target widget’s rectangle and inserting a positioned overlay.

FlutterGuide BubbleKeyboard Height
0 likes · 9 min read
Flutter: Mocking MethodChannel for Unit Tests, Retrieving Keyboard Height, and Quick Guide Bubbles
Xianyu Technology
Xianyu Technology
Dec 27, 2022 · Mobile Development

Flutter Bridge Calls, Async Concurrency, FPS Metrics, and Impeller Engine Overview

The article explains how to correctly handle MethodChannel bridge calls, avoid async/await concurrency pitfalls, interpret FPS metrics beyond raw frame rates, and get started with Flutter’s new Impeller rendering engine, highlighting its setup, benefits, and current limitations.

AsyncFlutterImpeller
0 likes · 9 min read
Flutter Bridge Calls, Async Concurrency, FPS Metrics, and Impeller Engine Overview
Sohu Tech Products
Sohu Tech Products
May 19, 2021 · Mobile Development

Creating an iOS Flutter Audio Player Plugin with MethodChannel

This tutorial explains step‑by‑step how to create a custom iOS Flutter plugin for audio playback, covering the MethodChannel architecture, Dart side implementation, Swift native code, and communication of playback controls and status between Flutter and iOS.

AudioPlayerFlutterMethodChannel
0 likes · 15 min read
Creating an iOS Flutter Audio Player Plugin with MethodChannel
Product Technology Team
Product Technology Team
Nov 18, 2020 · Mobile Development

Boosting Mobile Development: Mastering Flutter‑Native Hybrid Integration

This article explains how to combine Flutter and native code using FlutterBoost, covering global router construction, page navigation, parameter passing, startActivityForResult handling, and MethodChannel communication to achieve efficient, consistent hybrid mobile applications.

FlutterFlutterBoostHybrid Development
0 likes · 12 min read
Boosting Mobile Development: Mastering Flutter‑Native Hybrid Integration
Xianyu Technology
Xianyu Technology
Sep 3, 2020 · Mobile Development

Modularization and Cross‑Process Communication Strategies for Xianyu's Flutter Application

Xianyu tackles Flutter’s slow hybrid compilation and native‑module integration pain by introducing a minimal‑shell modular architecture and a two‑phone cross‑process setup that falls back from MethodChannel to socket communication, speeding builds, isolating components, and improving data consistency while adding maintenance and device constraints.

AndroidCross-ProcessFlutter
0 likes · 9 min read
Modularization and Cross‑Process Communication Strategies for Xianyu's Flutter Application
360 Tech Engineering
360 Tech Engineering
Aug 29, 2019 · Mobile Development

Understanding Flutter Platform Channels: Communication Between Dart and Native Android

This article explains how Flutter’s PlatformChannel works, detailing the communication flow from Dart to Android and back, including the role of MethodChannel, BasicMessageChannel, and EventChannel, with code examples and a step‑by‑step analysis of the underlying engine implementation.

AndroidBasicMessageChannelEventChannel
0 likes · 12 min read
Understanding Flutter Platform Channels: Communication Between Dart and Native Android
Watermelon Video Tech Team
Watermelon Video Tech Team
Jul 14, 2019 · Mobile Development

Understanding Flutter Platform Channels: Architecture, Code Samples, and Call Flow

This article explains Flutter's Platform Channel mechanism, detailing the three channel types, their core members, codec implementations, and the complete Dart‑to‑native‑to‑Java call sequence with code examples, enabling developers to build cross‑platform plugins efficiently.

Cross-PlatformFlutterMethodChannel
0 likes · 31 min read
Understanding Flutter Platform Channels: Architecture, Code Samples, and Call Flow
Sohu Tech Products
Sohu Tech Products
Jun 19, 2019 · Mobile Development

Integrating Flutter into iOS Apps: Mixed Development, Configuration, and Debugging Guide

This article provides a comprehensive step‑by‑step guide for integrating Flutter into iOS projects, covering required configuration files, script usage, AppDelegate modifications, MethodChannel communication, common pitfalls, debugging tools, performance monitoring, and routing strategies for both static and dynamic navigation.

DebuggingFlutterHybrid Development
0 likes · 15 min read
Integrating Flutter into iOS Apps: Mixed Development, Configuration, and Debugging Guide
Xianyu Technology
Xianyu Technology
Jun 23, 2018 · Mobile Development

Flutter Plugin Development: Platform Channels, MethodChannel, EventChannel, and Integration Guide

The article explains how to develop Flutter plugins using platform channels—MethodChannel for invoking native APIs and EventChannel for streaming events—detailing Android and iOS implementation steps, registration, dependency setup, common pitfalls, and advanced considerations such as JSON‑serializable data and texture handling.

EventChannelFlutterMethodChannel
0 likes · 11 min read
Flutter Plugin Development: Platform Channels, MethodChannel, EventChannel, and Integration Guide