This chapter covers recipes of miscellaneous topics in Flutter.
13.1 Using Assets
You want to bundle static assets in the app.
Flutter apps can include both code and static assets. There are two types
Data files including JSON, XML, and plain text files
Binary files including images and videos
Assets are declared in the flutter/assets section of the pubspec.yaml file. During the build process, these assets files are bundled into the appâs binary files. These assets can be accessed in the runtime. Itâs common to put assets under the assets directory. ...