ntfluttery 0.1.1 copy "ntfluttery: ^0.1.1" to clipboard
ntfluttery: ^0.1.1 copied to clipboard

ntfy.sh API client for Flutter/Dart, fetch, create, update, delete notifications.

example/ntfluttery_example.dart

import 'package:ntfluttery/ntfluttery.dart';

Future<void> main() async {
  final String topic = 'topic';
  final cliente = NtflutteryService(
      credentials: Credentials(username: 'credentials', password: 'password'))
    ..addLogging(true);
  final result = await cliente.get('');
  result.$1.listen((event) {
    print(event.$1);
    print('\n\n\n secondRecord \n\n\n');
    print(event.$2);
  });

  final latest = await cliente.getLatestMessage('');
  print('latest: $latest');
}
1
likes
150
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

ntfy.sh API client for Flutter/Dart, fetch, create, update, delete notifications.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

dio, equatable, pretty_dio_logger

More

Packages that depend on ntfluttery