How can I make this type of floating label

Apologies for taking a while to answer, but yes it can. As I said though in the topic, the Filled version has a layout issue and would not recommend using it. Others may have this too, but I am not aware… If it happens, let me know @iamwsumit!

The simpler solution to what @kritilalazad recommended is below.

Chamaeleon (Your Material Textfield)