Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some bug #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ For this you can use `captureAndSave` method by passing directory location. By d

```dart
final directory = (await getApplicationDocumentsDirectory ()).path; //from path_provide package
String fileName = DateTime.now().microsecondsSinceEpoch;
String fileName = DateTime.now().microsecondsSinceEpoch as String;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually this won't work either, because you can't cast int to String. One solution would be this:

Suggested change
String fileName = DateTime.now().microsecondsSinceEpoch as String;
String fileName = '${DateTime.now().microsecondsSinceEpoch}';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems better approach!

path = '$directory';

screenshotController.captureAndSave(
path //set path where screenshot will be saved
path, //set path where screenshot will be saved
fileName:fileName
);
```
Expand Down Expand Up @@ -147,4 +147,4 @@ screenshotController.capture(delay: Duration(milliseconds: 10))
---
## Known Issues
- **`Platform Views are not supported. (Example: Google Maps, Camera etc)`[issue](https://github.com/flutter/flutter/issues/83856)**
---
---