Reads the image from the assets bundled with your app.

Displays the image on the screen.

To review a complete example, check out the Image docs.

Bundling videos in apps

In SwiftUI, you bundle a local video file with your app in two
steps.
First, you import the AVKit framework, then you instantiate a
VideoPlayer view.

In Flutter, add the video_player plugin to your project.
This plugin allows you to create a video player that works on
Android, iOS, and on the web from the same codebase.

Add the plugin to your app and add the video file to your project.

Add the asset to your pubspec.yaml file.

Use the VideoPlayerController class to load and play your video
file.

To review a complete walkthrough, check out the video_player example.