Skip to content

Utilize the native text input UI component of Android / iOS on a Flutter project

Notifications You must be signed in to change notification settings

chuen015/NativeTextField

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Utilize native input text components of Android / iOS on a Flutter project

Native.TextField.Made.with.FlexClip.mp4

Introduction

Modern chat apps often allow users to paste rich content and send images.

However, the TextField widget in the Flutter SDK currently lacks this feature. On Android, for example, long-pressing the TextField does not show the “Paste” option.

To enable the “pasting” of rich content in a TextField, we are utilizing native UI components: EditText on Android and UITextView on iOS. This is achieved by employing custom platform-specific code, and hosting platform-specific provided by Flutter, as detailed in the Platform Channels documentation, and hosting platform-specific UI components in a Flutter widget.

For more information, see:

Additionally, the Flutter SDK supports image insertion via the keyboard on Android, as highlighted in PR

About

Utilize the native text input UI component of Android / iOS on a Flutter project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published