-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fetch image #229
Fetch image #229
Conversation
@n13 I need ur help here. I spent way too long already trying to figure out this Image stuff for the Daos. |
children: [ | ||
Text(dao.settingsDaoTitle, style: context.hyphaTextTheme.smallTitles), | ||
Text( | ||
'dao.hypha.earth/${dao.settingsDaoUrl}', |
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.
I thought this field was called short URL or something
class IPFSManager { | ||
final apiKey = 'apiKey'; | ||
final apiKeySecret = 'apiKeySecret'; | ||
final serverUlr = 'https://ipfs.infura.io:5001'; |
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.
Ok... guess we need secret - let's load it from firebase?! At least it won't be in the code then..
} | ||
|
||
Future getImage(String imageToken) async { | ||
final response = await ipfsClient.read(dir: imageToken); |
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.
@n13 this doesnt work. it fail. can you take a look when you get some time pls.
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.
Hmmm
Ok so this item is in limbo because the IPFS access isn't working? Or is it working now with our .env file? |
Current status: Not working. IPFS access isn't working yet |
Some examples of IPFS images
|
https://ipfs.io/ipfs/QmV3KmaoqCCXuCDvHzYWS9Jg3RfjrDTQSXK1e7453qfSRS this also works... in the browser.. it's an svg |
Ok all done @gguijarro-c-chwy - it's working so I am leaving it with you to put the files in the right places and so on... I made a new image widget IPFSImage for showing the URLs. Note that the Hypha SVG has an error but that's because our library doesn't support some attributes, and won't - we need to fix the SVG and in any case using SVGs there isn't going to work well, it should be bitmaps. Reference Here: dnfield/flutter_svg#105 |
The linter complains there's no .env file... a conundrum... |
No description provided.