showWithSmallImage method

void showWithSmallImage(
  1. String thead,
  2. dynamic tbody,
  3. dynamic saveDir
)

Implementation

void showWithSmallImage(String thead,tbody,saveDir) async {

  const String url =
      "https://cdn-icons-png.flaticon.com/512/9496/9496502.png";

  final imageDir = await getImageBytes(url);

  NotificationMessage message = NotificationMessage.fromPluginTemplate(
     "Download Files",tbody,"" ,
      image: imageDir,
      launch: "${fixPath(saveDir)}"); // Changed to open the download directory
  _winNotifyPlugin.showNotificationPluginTemplate(message);
}