CameraToggleButton
CameraToggleButton is a widget that represents a camera toggle button with customizable appearance and location. The camera toggle button allows the user to switch between the front and back cameras.
Definition
Assembly: dynamsoft_capture_vision_flutter
class CameraToggleButton
Constructors
CameraToggleButton({
required this.location,
this.imageBase64,
});
Properties
| Properties | Type | Description |
|---|---|---|
location |
Rect | Defines the location of the camera button. This rectangle specifies the button’s position and size on the screen. Coordinates are in logical pixels. |
imageBase64 |
String | A base 64 string that specifies the camera toggle image. |
location
Defines the location of the camera button. This rectangle specifies the button’s position and size on the screen. Coordinates are in logical pixels.
Rect location;
imageBase64
A base 64 string that specifies the camera toggle image.
String? imageBase64;
Remarks
When setting the imageBase64 string, please note that the string should not include the data:image/png;base64, portion of the base64 string.