Buscar pacotes, repositórios e categorias de apps

Detalhes do pacotev0.1.1

ntfluttery

Cliente da API ntfy.sh para Flutter/Dart, buscar, criar, atualizar e excluir notificações.

AndroidiOSmacOSWindowsLinux
Downloads em 30 dias
11
Curtidas
2
Pontos Pub
80

Instalar pacote

flutter pub add ntfluttery

Visão geral do pacote

Orientação gerada a partir de informações públicas. Apenas para referência.

ntfluttery é um pacote Flutter/Dart que fornece um cliente para o serviço de notificação ntfy.sh, permitindo que aplicativos enviem, recuperem, atualizem e excluam notificações programaticamente. Ele suporta todas as principais plataformas, incluindo Android, iOS, macOS, Windows e Linux. O pacote simplifica a integração com a API RESTful do ntfy.sh, permitindo que desenvolvedores entreguem alertas e mensagens em tempo real dentro de seus aplicativos. Ideal para sistemas de notificação leves e sem servidor, exige configuração mínima e funciona perfeitamente em diferentes ambientes.

Casos de uso

  • Enviando notificações em tempo real
  • Integração com o ntfy.sh para alertas
  • Automatizando a entrega de mensagens em aplicativos
  • Tratamento de notificações multiplataforma
  • Construindo sistemas de alerta leves

Principais recursos

  • Suporta todas as principais plataformas
  • Operações CRUD completas para notificações
  • Integração simples de API
  • Leve e eficiente
  • Entrega de mensagens em tempo real

Indicado para

  • Desenvolvedores usando ntfy.sh
  • Aplicativos que precisam de alertas multiplataforma
  • Fluxos de trabalho de notificação sem servidor
  • Projetos de integração rápida
  • Soluções de notificação minimalistas

Considerações

  • Requer uma conta do ntfy.sh
  • Dependente da disponibilidade da API externa
  • Limitado à funcionalidade do ntfy.sh
  • Sem componentes de interface embutidos
  • Conexão de rede necessária

README original

Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.

ntfluttery

This plugin is focused on help with the integration of ntfy.sh it has multiple ways to access the list of messages such as a Streaming of data or even using custom credentials.

Also it provides various ways to handle the messages list.

Features

  • Ready to use NTFY:
  • Tuples of messages: Thanks to Dart 3, you can fetch customisable tuples based on the type of message.
  • Error Handling and Data Processing
  • Growing test percentage: The test percentage is being continously growing, to ensure a fully tested library.

Getting Started

Installation

To use this plugin, add ntfluttery as a dependency in your pubspec.yaml file.

dependencies:
  ntfluttery: ^latest_version
Usage
import 'package:ntfluttery/ntfluttery.dart';

void main() {
    // initialize the client
  final client = NtflutteryService(
      credentials:
          Credentials(username: 'ntfyUser', password: 'ntfyPassword'));

    // Inject a logger into each request.
    client.addLogging(true);

    // Fetch from the NTFY API as a STREAM
  final result = await cliente
      .get('https:/notification/$topic/json?poll=1');

    // Received the data as a touple ready to be used.
  result.$1.listen((event) {
    print(event.$1);
    print(event.$2);
  });
}
import 'package:ntfluttery/ntfluttery.dart';

void main() {
    // initialize the client
  final client = NtflutteryService(
      credentials:
          Credentials(username: 'ntfyUser', password: 'ntfyPassword'));

    // Or fetch the messages and instead of use a Streaming just use it as a simple Future value.
    final latest = await cliente.getLatestMessage(
      'https://notification/$topic/json?poll=1');
  print('latest: $latest');
}

Additional Information

  • Platform Support: iOS, Android, Web, Desktop
  • Dependencies: Dio, Flutter, PrettyDioLogger

Contributing

Contributions are welcome!

License

This project is licensed under the MIT License.

Special thanks

Thanks to Philipp C. Heckel for create this great tool.

Support and Contact

If you have any questions or issues, please file them on issue tracker.

For further inquiries, contact me at luisalfonsocb83@gmail.com.

Categorias

Dependências

Lista de dependências 3 itens

Repositório-fonte

Projetos que usam este pacote

Ainda não há dados.