alarm 2.0.0-dev.1 alarm: ^2.0.0-dev.1 copied to clipboard
A simple Flutter alarm manager plugin for both iOS and Android.
import 'dart:async';
import 'package:alarm_example/screens/home.dart';
import 'package:flutter/material.dart';
import 'package:alarm/alarm.dart';
import 'package:flutter/services.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
await Alarm.init(showDebugLogs: true);
runApp(const MaterialApp(home: ExampleAlarmHomeScreen()));
}