Last active
March 25, 2021 23:10
-
-
Save jtmuller5/29a9da4b79b225bd480d6bb2a200e61d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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