Local Notification in Flutter

Local Notification in Flutter :

Local Notification in Flutter
  FlutterLocalNotificationsPlugin localNotificationsPlugin =
  initializeNotifications() async {
    var initializeAndroid = AndroidInitializationSettings('ic_launcher');
    var initializeIOS = IOSInitializationSettings();
    var initSettings = InitializationSettings(initializeAndroid, initializeIOS);
    await localNotificationsPlugin.initialize(initSettings);

  Future singleNotification(
      DateTime datetime, String message, String subtext, int hashcode,
      {String sound}) async {
    var androidChannel = AndroidNotificationDetails(
      importance: Importance.Max,
      priority: Priority.Max,

    var iosChannel = IOSNotificationDetails();
    var platformChannel = NotificationDetails(androidChannel, iosChannel);
        hashcode, message, subtext, datetime, platformChannel,
        payload: hashcode.toString());

await singleNotification(
                  "Todo - $taskTitle",
                  "Looks like something intersting you have here...!!!",

The flutter tutorial  is a website that bring you the latest and amazing resources of code. All the languages codes are included in this website. The languages like flutter, android, java,kotlin etc.with the help of this languages any user can develop the beautiful application

For more information about Flutter. visit www.fluttertutorial.in