Visitar URL original
Pigeon: Add support for enums · Issue #64192 · flutter/flutter · GitHub
Skip to content

Pigeon: Add support for enums #64192

Closed
flutter/packages
#331

Description

@TytaniumDev

Use case

We'd like to be able to use enums in our pigeon dart file, and use those enums in native code.

Proposal

We're currently working around this by using Strings instead of enums, but if the code gen could do something like convert dart enums to strings, and then convert strings to enums in java/objc, we could gain a bit of pseudo type safety.

Activity

  1. added
    packageflutter/packages repository. See also p: labels.
    p: pigeonrelated to pigeon messaging codegen tool
    c: proposalA detailed proposal for a change to Flutter
    c: new featureNothing broken; request for a new capability
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Aug 21, 2020
  2. removed
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Sep 1, 2020
  3. GaryQian commented on Apr 28, 2021

    @GaryQian
    Contributor
  4. github-actions commented on Aug 1, 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.

  5. locked as resolved and limited conversation to collaborators on Aug 1, 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

    c: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterp: pigeonrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions