How to receive text file from another app in flutter app

  1. Need to receive a text file into my app so I used the receive_sharing_intent package but unable to receive any file with extension .txt.