title: Embedding Kotlin Library with Layout XML File in Flutter with Platform Channels
body: <p>Using platform channels, we can create factories and return native views in Flutter. What I'm trying to do is achieve this without using factory method, using XML layout files. Trying to implement this <a href="https://github.com/kizitonwose/CalendarView" rel="nofollow noreferrer">CalendarView</a> library written in Kotlin. (for example, implement example 4 in <code>sample</code> directory)</p>
  
  <p>I have considered using <code>LayoutInflater</code> method. Could <code>LayoutInflater</code> be used to achieve this? I would be appreciated if you can give me any tutorials or pseudo codes.</p>