App crashes if the root view controller is not FlutterViewController
To Reproduce
Steps to reproduce the behavior:
For some reason I had to make Navigation controller my root view controller and I am not able to share because the plugin assumes that root view controller is Flutter view Controller in SwiftEsysFlutterSharePlugin.swift
// present the view controller
let controller = UIApplication.shared.keyWindow!.rootViewController as! FlutterViewController
App crashes if the root view controller is not FlutterViewController
To Reproduce Steps to reproduce the behavior: For some reason I had to make Navigation controller my root view controller and I am not able to share because the plugin assumes that root view controller is Flutter view Controller in SwiftEsysFlutterSharePlugin.swift