Skip to content

Instantly share code, notes, and snippets.

Last active March 25, 2021 23:10
What would you like to do?
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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment