-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Adds Image faker #21
Adds Image faker #21
Conversation
@igorgoncalves Thanks a lot! I had a thought that instead of passing a comma separated string for the keywords we could actually accept a List of strings e.g: |
Make sense to me, I will change that :D |
Great, thanks! |
Co-Authored-By: Jesper Håkansson <jesper@jesperh.se>
new RegExp(r'^([A-Za-z0-9].+,[A-Za-z0-9]+)$|^([A-Za-z0-9]+)$'); | ||
if (keywordFormat.hasMatch(keywords)) { | ||
url += '?' + keywords; | ||
new RegExp(r'^([A-Za-z0-9].+,[A-Za-z0-9]+)$|^([A-Za-z0-9]+)$'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run dart formatter on this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! It looks good!
Connection with issue(s)
Resolve issue #19
Testing and Review Notes
Generates a url to a image random image. The size of image is determined by
width
andheight
paramters. You can choose the image categories related by thekeywords
parameter separeted by comma .Example:
Result: https://source.unsplash.com/1200x900?nature,people
To Do