in_app_reminder 0.0.3 copy "in_app_reminder: ^0.0.3" to clipboard
in_app_reminder: ^0.0.3 copied to clipboard

A Flutter plugin to create native reminders using the device's built-in Reminders app. Currently supports iOS only, with features like scheduling title, notes, time, and repeat intervals.

example/lib/main.dart

import 'dart:developer';
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:in_app_reminder/in_app_reminder.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  Future<void> addToReminder() async {
    try {
      InAppReminder.addReminder(
        title: 'Title for Reminder', // Title of the reminder
        notes: 'Notes for the reminder', // Optional notes
        dateTime: DateTime.now().add(const Duration(minutes: 2)), // Set the reminder for 2 minutes from now
        frequency: ReminderFrequency.daily, // Change to weekly, monthly, or yearly as needed
      );
    } catch (e) {
      log('Error adding reminder: $e');
    }
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Plugin example app')),
        body: Center(
          child: ElevatedButton(
            onPressed: addToReminder,
            child: const Text("Add iOS Reminder"),
          ),
        ),
      ),
    );
  }
}
10
likes
0
points
430
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to create native reminders using the device's built-in Reminders app. Currently supports iOS only, with features like scheduling title, notes, time, and repeat intervals.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on in_app_reminder

Packages that implement in_app_reminder