nostr_widgets 0.0.2
nostr_widgets: ^0.0.2 copied to clipboard
A Flutter UI package providing ready-to-use widgets.
This package helps you to easily produce Nostr apps by providing generics Widgets and methods.
Features #
- Nostr widgets
- Login persistence
Getting started #
flutter pub add ndk
flutter pub add nostr_widgets
Usage #
import 'package:nostr_widgets/nostr_widgets.dart';
// login page with all login methods
final loginPage = ListView(
children: [
NLogin(ndk),
],
);
// user info
final userPage = ListView(
children: [
NUserProfile(ndk),
],
);
// call this to connect user from local storage
nRestoreLastSession(ndk);
// logout the user and delete his local storage
nLogout(ndk);