Skip to content

Build fails on latest Flutter: $Container missing implementation for new Container.isAntiAlias member #140

Description

@DaoChiMinh

After upgrading to the latest Flutter SDK, any project using flutter_eval fails to compile. The Flutter framework recently added a new isAntiAlias field to the Container widget (packages/flutter/lib/src/widgets/container.dart), and the generated bridge class $Container does not implement it.

Error log:
Error: The non-abstract class '$Container' is missing implementations for these members:

  • Container.isAntiAlias
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.
    class $Container implements Container, $Instance {
    ^^^^^^^^^^
    ../../../flutter/packages/flutter/lib/src/widgets/container.dart:332:14: Context: 'Container.isAntiAlias' is defined here.
    final bool isAntiAlias;

Target kernel_snapshot_program failed: Exception
Execution failed for task ':app:compileFlutterBuildDebug'.
Environment:

flutter_eval: ^0.8.2
dart_eval: ^0.8.5
Flutter: 3.44
Platform: Windows 10/11, building for Android (debug)
Steps to reproduce:

Create a Flutter project on the latest Flutter SDK
Add flutter_eval as a dependency
Run flutter build apk --debug (or flutter run)
Build fails at kernel_snapshot_program with the error above

Expected behavior:
The $Container bridge class should implement the new Container.isAntiAlias getter (and ideally expose the new isAntiAlias constructor parameter) so the package compiles against current Flutter versions.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions