Flutter — How to Read text file from assets

A short tutorial on how to get text from a file in Flutter.

1. Create an asset folder

Create an assets folder in your project’s root folder. In Android Studio you can right click the Project outline and go to New > Directory.

--

--

Flutter and Native Android developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store