Skip to content

Instantly share code, notes, and snippets.

Embed
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);
}
notifyListeners();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment