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

some bug #87

wants to merge 1 commit into from

Conversation

shinriyo
Copy link

you forgot something

you forgot something
@@ -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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants