Closed apalala-dev closed 1 year ago
This PR intends to provide a better documentation, fix bugs and provide an API easier to use. Among the things I changed, there are:
Before creating any Pull Request, confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
[x]
flutter analyze
The constructor of CamerAwesome now takes a required AwesomeFileSaver as parameter instead of needing fields without requiring them.
Example:
CameraAwesomeBuilder.awesome( awesomeFileSaver: AwesomeFileSaver.imageAndVideo( imagePathBuilder: () => _path(CaptureModes.PHOTO), videoPathBuilder: () => _path(CaptureModes.VIDEO), initialCaptureMode: CaptureModes.PHOTO, ), onMediaTap: (mediaCapture) { OpenFile.open(mediaCapture.filePath); }, )
Several constructors exist depending on if one wants to save pictures, videos or both.
Note: to see the updated docs, get the branch on your local environment and go to https://docs.page/preview
Description
This PR intends to provide a better documentation, fix bugs and provide an API easier to use. Among the things I changed, there are:
Checklist
Before creating any Pull Request, confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
).flutter analyze
without any issues.Breaking Change
The constructor of CamerAwesome now takes a required AwesomeFileSaver as parameter instead of needing fields without requiring them.
Example:
Several constructors exist depending on if one wants to save pictures, videos or both.