1) import sdk
import 'package:sendingnetwork_dart_sdk/sdn.dart';
2) Create a client and fill in the domain name of the server
final client = Client('SDN Example Chat', databaseBuilder: (_) async {
final dir = await getApplicationSupportDirectory();
final db = HiveCollectionsDatabase('sdn_example_chat', dir.path);
await db. open();
return db;
});
client.sdnnode = Uri.parse('https://XXX.network'); // The domain name of the node
2. Interface
Please refer to our gitbook for detailed API docuemntation: https://sending-network.gitbook.io/sending.network/sdk-documentation/flutter-sdk
Libraries
- encryption
- SDN SDK encryption specific extension
- encryption/cross_signing
- encryption/encryption
- encryption/key_manager
- encryption/key_verification_manager
- encryption/olm_manager
- encryption/ssss
- encryption/utils/base64_unpadded
- encryption/utils/bootstrap
- encryption/utils/json_signature_check_extension
- encryption/utils/key_verification
- encryption/utils/olm_session
- encryption/utils/outbound_group_session
- encryption/utils/session_key
- encryption/utils/ssss_cache
- encryption/utils/stored_inbound_group_session
- msc_extensions/extension_recent_emoji/recent_emoji
- msc_extensions/msc_1236_widgets/msc_1236_widgets
- msc_extensions/msc_1236_widgets/src/widget
- msc_extensions/msc_2835_uia_login/msc_2835_uia_login
- msc_extensions/msc_3814_dehydrated_devices/api
- msc_extensions/msc_3814_dehydrated_devices/model/dehydrated_device
- msc_extensions/msc_3814_dehydrated_devices/model/dehydrated_device_events
- msc_extensions/msc_3814_dehydrated_devices/msc_3814_dehydrated_devices
- msc_extensions/msc_3935_cute_events/msc_3935_cute_events
- sdn
- SDN SDK written in pure Dart.