Exploring mobile device features
There are a lot of features in devices, especially mobile phones or tablets, that your app can use to make the UX better. Normally, you would need to write device-specific code to access these features, but in Flutter, access to the features is generally available within a plugin. In this section, we will take a whistle-stop tour of some of these features, including the camera, web browser, local storage, and video playback, so that you can enhance the usability of the apps you create using the plugins that are already available to you.
Camera and QR codes
A key feature that mobile phones and tablets have is the camera. This can be used for photos, but it can also be used for other functionality, such as Quick Response (QR) scanning.
A couple of plugins to check out are camera
(built by the Flutter.dev team) and qr_code_scanner
.
The qr_code_scanner
plugin contains the following two key things:
- A
QRView
widget that you place in your...