Tag

Keyboard Height

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.

Guide BubbleKeyboard HeightMethodChannel
0 likes · 9 min read
Flutter: Mocking MethodChannel for Unit Tests, Retrieving Keyboard Height, and Quick Guide Bubbles
Sohu Tech Products
Sohu Tech Products
Nov 2, 2022 · Mobile Development

Android Soft Keyboard Height Detection and Layout Attachment Techniques

This article reviews three approaches to obtain the Android soft‑keyboard height—using ViewTreeObserver, a hidden PopupWindow, and WindowInsets—compares their pros and cons, shows complete Kotlin/Java implementations, and demonstrates how to attach UI elements to the keyboard for a smoother user experience.

AndroidKeyboard HeightKotlin
0 likes · 14 min read
Android Soft Keyboard Height Detection and Layout Attachment Techniques