Created
January 25, 2023 23:32
-
-
Save SteveOye/66f758fb156fd25840ae300365e4f912 to your computer and use it in GitHub Desktop.
initialize the flutter_local_notification plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NotificationApi{ | |
static final _notification = FlutterLocalNotificationsPlugin(); | |
static void init() { | |
_notification.initialize( | |
const InitializationSettings( | |
android: AndroidInitializationSettings('@mipmap/ic_launcher'), | |
iOS: DarwinInitializationSettings(), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment