mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-03-16 12:11:07 -05:00
Support for gists #46
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shreyas1599 on GitHub (Apr 23, 2020).
Add user's gists in the profile section.
@shreyas1599 commented on GitHub (May 6, 2020):
@pd4d10 I could use some help. Consider the json output for getting gists.
Filesis another json and not a list. I'm having trouble serializing this. The Spinlocklabsgithub.dartdeclares it as a list which is wrong and results in an error. I've opened an issue there. This is what I've done for now.But making
fileNamesdynamic is creating problems everywhere and I'm not sure if this is the right way to serialize it. For instance, I am unable to use theObjectTreewidget. I have created another widget file and solved the problem but I think re-using theObjectTreewidget is a better way to go. The error is something to do with fileNames being dynamic. Any help is appreciated. Thanks.@pd4d10 commented on GitHub (May 6, 2020):
What's the error message (or error stack)?
@shreyas1599 commented on GitHub (May 6, 2020):
type 'MappedListIterable<dynamic, dynamic>' is not a subtype of type 'Iterable<ObjectTreeItem>'This is what I tried to do:
@pd4d10 commented on GitHub (May 6, 2020):
How about using
files.values()?@pd4d10 commented on GitHub (May 6, 2020):
Or
files.entries()if you want the key too@shreyas1599 commented on GitHub (May 6, 2020):
Doesn't work. Still getting the same error.
@pd4d10 commented on GitHub (May 6, 2020):
Oh, my mistake.
valuesandentriesare getters, not methods.@pd4d10 commented on GitHub (May 6, 2020):
Perhaps you could submit a WIP pull request so I could help to check it.
@shreyas1599 commented on GitHub (May 6, 2020):
I used them as getters only. Does it make a difference if it's a getter and not a method for this case?