chore: setup bunker

This commit is contained in:
2025-05-15 11:12:12 +01:00
parent 2d855362e4
commit 787a848257
2 changed files with 28 additions and 1 deletions

View File

@ -30,6 +30,14 @@ class _LoginInputPage extends State<LoginInputPage> {
"Login",
onTap: () async {
try {
if (_controller.text.startsWith("bunker://")) {
// not supported yet in ndk
setState(() {
_error = "Bunker login not supported yet";
_controller.clear();
});
return;
}
final keyData = bech32ToHex(_controller.text);
if (keyData.isNotEmpty) {
loginData.value = LoginAccount.nip19(_controller.text);