Skip to content

Instantly share code, notes, and snippets.

@jtmuller5
Last active March 25, 2021 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtmuller5/29a9da4b79b225bd480d6bb2a200e61d to your computer and use it in GitHub Desktop.
Save jtmuller5/29a9da4b79b225bd480d6bb2a200e61d to your computer and use it in GitHub Desktop.
Uint8List pic;
Future<void> readPic() async {
AtKey atKey = AtKey();
atKey.key = 'pic';
// Get keys shared by the other sign
if (!mine) {
atKey.sharedBy = AtConstants().atMap[atProtocolService.currentAtSign];
}
String serverValue = await atProtocolService.get(atKey);
print('Server value: ' + serverValue.toString());
if(serverValue != null){
pic = Base2e15.decode(serverValue);
}
notifyListeners();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment