Skip to content

[BUG] Incompatible types: BottomAppBarTheme / AppBarTheme on Flutter 3.35.1 #712

@crasowas

Description

@crasowas

Describe the bug
After upgrading Flutter from 3.32.8 to 3.35.1, this package fails to compile due to type incompatibility with updated Flutter API definitions.

Compilation errors:

/wechat_assets_picker-9.7.0/lib/src/delegates/asset_picker_delegate.dart:324:26: Error: The argument type 'BottomAppBarTheme' can't be assigned to the parameter type 'BottomAppBarThemeData?'.

/wechat_assets_picker-9.7.0/lib/src/widget/asset_picker_app_bar.dart:108:43: Error: A value of type 'AppBarThemeData' can't be assigned to a variable of type 'AppBarTheme'.

How to reproduce

Steps to reproduce the behavior:

  1. Upgrade Flutter to 3.35.1.
  2. Create a minimal Flutter project.
  3. Add wechat_assets_picker: 9.7.0 to pubspec.yaml.
  4. Run flutter pub get and flutter run.
  5. Compilation fails with the above errors.

Expected behavior
The package should compile successfully under Flutter 3.35.1 without type incompatibility errors.

Version information

  • Package Version: [9.7.0]
  • Flutter Version: [3.35.1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    b: flutterThis is a flutter issue.s: bugSomething isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions