mcrovero / flutter_interactive_keyboard

More on https://medium.com/@mattia_crovero/interactive-keyboard-in-flutter-5d7ac6ee096b
BSD 2-Clause "Simplified" License
53 stars 26 forks source link

When using package, project not compiling #3

Closed EdgarEscobedoHdz closed 4 years ago

EdgarEscobedoHdz commented 4 years ago

I'm trying to use this package but when compiling I get the following:

    /Users/edgar/flutter/.pub-cache/git/flutter_interactive_keyboard-7fda19c541af180545418e15231a9163f2d7ab35/ios/Classes/SwiftFlutterInteractiveKeyboardPlugin.swift:132:74: error: 'UIKeyboardWillShow' has been renamed to 'UIResponder.keyboardWillShowNotification'

​            let isKeyboardShowing = notification.name == NSNotification.Name.UIKeyboardWillShow

​                                                                             ^~~~~~~~~~~~~~~~~~

​                                                                             UIResponder.keyboardWillShowNotification

​    UIKit.NSNotification.Name:11:23: note: 'UIKeyboardWillShow' was obsoleted in Swift 4.2

​        public static let UIKeyboardWillShow: NSNotification.Name

​                          ^

​    /Users/edgar/flutter/.pub-cache/git/flutter_interactive_keyboard-7fda19c541af180545418e15231a9163f2d7ab35/ios/Classes/SwiftFlutterInteractiveKeyboardPlugin.swift:135:47: error: 'UIKeyboardFrameEndUserInfoKey' has been renamed to 'UIResponder.keyboardFrameEndUserInfoKey'

​                    let keyboardFrame = (userInfo[UIKeyboardFrameEndUserInfoKey] as AnyObject).cgRectValue

​                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

​                                                  UIResponder.keyboardFrameEndUserInfoKey

​    UIKit.UIKeyboardFrameEndUserInfoKey:3:12: note: 'UIKeyboardFrameEndUserInfoKey' was obsoleted in Swift 4.2

​    public let UIKeyboardFrameEndUserInfoKey: String

Thank you in advance for your effort!

david-shortman commented 4 years ago

The latest version of the code does not appear to be published to pub. You can try using the latest version published on GitHub using this in your pubspec.yml:

flutter_interactive_keyboard:
    git:
      url: https://github.com/mcrovero/flutter_interactive_keyboard.git
      ref: master
david-shortman commented 4 years ago

The latest version of the code has now been published to Pub. Closing this issue until the problem is reproduced in latest version.