notification_fetcher 0.1.9
notification_fetcher: ^0.1.9 copied to clipboard
A Flutter package to fetch and show notifications with a background service.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:notification_fetcher/notification_fetcher.dart';
void main() {
runApp(const MyApp());
startBackgroundService(apiUrl: "https://yourapiurl");
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Notification Fetcher Example',
home: Scaffold(
appBar: AppBar(title: const Text('Notification Fetcher')),
body: const Center(child: Text('Running background notification fetcher...')),
),
);
}
}