Skip to content

flutter doesn't export RawKeyEvent? #11899

Closed

Description

@eseidelGoogle

Not sure if this is intentional. I am attempting to use RawKeyboardListener https://docs.flutter.io/flutter/widgets/RawKeyboardListener-class.html , when defining my onKey, I want to provide a type for the event, but it appears the RawKeyEvent type isn't exported by default.

Activity

  1. eseidelGoogle commented on Sep 1, 2017

    @eseidelGoogle
    ContributorAuthor

    https://docs.flutter.io/flutter/services/RawKeyEvent-class.html doesn't say I need to import anything to use it. :)

  2. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    on Sep 1, 2017
  3. added this to the milestone on Sep 1, 2017
  4. Hixie commented on Sep 1, 2017

    @Hixie
    Contributor

    RawKeyboardListener should reexport RawKeyEvent.

  5. eseidelGoogle commented on Sep 1, 2017

    @eseidelGoogle
    ContributorAuthor

    The current way to get it is with import 'package:flutter/services.dart';

  6. added a commit that references this issue on Sep 11, 2019
  7. added a commit that references this issue on Sep 12, 2019
  8. added a commit that references this issue on Sep 12, 2019
  9. added a commit that references this issue on Sep 13, 2019
  10. added a commit that references this issue on Sep 13, 2019
  11. github-actions commented on Aug 16, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  12. locked as resolved and limited conversation to collaborators on Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions