Skip to content

[pigeon] Example code on pub.dev doesn't compile #92641

@Foorack

Description

@Foorack

The code at https://pub.dev/packages/pigeon/example

  • Shouldn't it be FlutterActivity instead of Activity?
  • Missing import of io.flutter.embedding.android.FlutterActivity, as there are two FlutterActivity classes, and one is wrong to use.
  • Return statement in search() is missing semi-colon
  • getBinaryMessenger doesn't exist, and should be getFlutterEngine().getDartExecutor() instead

@gaaclarke

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectp: pigeonrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions