|
|
|
@@ -17,7 +17,7 @@ public class QRViewFactory: NSObject, FlutterPlatformViewFactory { |
|
|
|
} |
|
|
|
|
|
|
|
public func create(withFrame frame: CGRect, viewIdentifier viewId: Int64, arguments args: Any?) -> FlutterPlatformView { |
|
|
|
var dictionary = args as! Dictionary<String, Double> |
|
|
|
let dictionary = args as! Dictionary<String, Double> |
|
|
|
return QRView(withFrame: CGRect(x: 0, y: 0, width: dictionary["width"] ?? 0, height: dictionary["height"] ?? 0), withRegistrar: registrar!,withId: viewId) |
|
|
|
} |
|
|
|
|
|
|
|
|