Procházet zdrojové kódy

replace var to let

flutter-beta
Reid Lai před 5 roky
rodič
revize
709c06ddb8
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +1
    -1
      ios/Classes/QRView.swift
  2. +1
    -1
      ios/Classes/QRViewFactory.swift

+ 1
- 1
ios/Classes/QRView.swift Zobrazit soubor

@@ -44,7 +44,7 @@ public class QRView:NSObject,FlutterPlatformView {
[weak self] (call: FlutterMethodCall, result: FlutterResult) -> Void in
switch(call.method){
case "setDimensions":
var arguments = call.arguments as! Dictionary<String, Double>
let arguments = call.arguments as! Dictionary<String, Double>
self?.setDimensions(width: arguments["width"] ?? 0,height: arguments["height"] ?? 0)
case "flipCamera":
self?.flipCamera()


+ 1
- 1
ios/Classes/QRViewFactory.swift Zobrazit soubor

@@ -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)
}


Načítá se…
Zrušit
Uložit