package Ġdev . hen r yle un gh k . flutter _ native _ text _ input Ċ Ċ import Ġandroid . content . Context Ċ import Ġio . flutter . embedding . engine . plugins . Flutter Plugin Ċ import Ġio . flutter . plugin . common . Binary Messenger Ċ import Ġio . flutter . plugin . common . Method Channel Ċ import Ġio . flutter . plugin . common . Standard Message Codec Ċ import Ġio . flutter . plugin . platform . Platform View Ċ import Ġio . flutter . plugin . platform . Platform View Factory Ċ Ċ class ĠNative TextInput Factory ( binding : ĠFlutter Plugin . Flutter Plugin Binding ): ĠPlatform View Factory ( Standard Message Codec . INSTANCE ) Ġ{ ĊĠĠĠ Ġ/// ĠThe ĠMethod Channel Ġthat Ġwill Ġthe Ġcommunication Ġbetween ĠFlutter Ġand Ġnative ĠAndroid ĊĠĠĠ Ġ/// ĊĠĠĠ Ġ/// ĠThis Ġlocal Ġreference Ġserves Ġto Ġregister Ġthe Ġplugin Ġwith Ġthe ĠFlutter ĠEngine Ġand Ġunregister Ġit ĊĠĠĠ Ġ/// Ġwhen Ġthe ĠFlutter ĠEngine Ġis Ġdet ached Ġfrom Ġthe ĠActivity ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġchannel : ĠMethod Channel ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġnative TextInput : ĠNative TextInput ĊĠĠĠ Ġprivate Ġvar Ġmess enger : ĠBinary Messenger ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġmess enger Ġ= Ġbinding . binary Messenger ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġcreate ( context : ĠContext , Ġview Id : ĠInt , Ġargs : ĠAny ?): ĠPlatform View Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcreation Params Ġ= Ġargs Ġas ĠMap < String ?, ĠAny ?> ĊĠĠĠĠĠĠĠ Ġval Ġchannel Name Ġ= Ġ" flutter _ native _ text _ input ${ view Id }" ĊĠĠĠĠĠĠĠ Ġchannel Ġ= ĠMethod Channel ( messenger , Ġchannel Name ) ĊĊĠĠĠĠĠĠĠ Ġreturn ĠNative TextInput ( context , Ġview Id , Ġcreation Params , Ġchannel ) ĊĠĠĠ Ġ} Ċ }