From 832c478efa6085584d90c3e7c5df86b601cb13c9 Mon Sep 17 00:00:00 2001 From: yusufkecer Date: Fri, 14 Aug 2026 00:50:18 +0300 Subject: [PATCH] Support Flutter 3.41 Flutter 3.41 added an `isAntiAlias` field to `Container`. `$Container` implements `Container` and did not implement it, so the class is abstract by omission and the package does not compile at all on 3.41 or later: Error: The non-abstract class '$Container' is missing implementations for these members: - Container.isAntiAlias This forwards it like every other Container property. Because `Container.isAntiAlias` does not exist before 3.41, the forwarder cannot compile on older Flutter either, so the minimum Flutter version moves to 3.41.0. Anyone on 3.19-3.40 keeps resolving to 0.8.2, which works there. The dart_eval constraint moves to ^0.8.5 to match: Flutter 3.41 ships a Dart newer than dart_eval supported before 0.8.3, so the versions this release can actually run with start there. With this, `flutter analyze lib` reports no errors and all 16 tests pass. --- CHANGELOG.md | 7 +++++++ lib/src/widgets/container.dart | 3 +++ pubspec.yaml | 6 +++--- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe8e3f7..c27c336 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 0.8.3 +- Support for Flutter 3.41. `Container` gained an `isAntiAlias` field, which + `$Container` did not implement — without it the package does not compile. +- Raised the minimum Flutter version to 3.41.0, since `Container.isAntiAlias` + does not exist before it. +- Raised the minimum dart_eval version to 0.8.5. + ## 0.8.2 - Support for Flutter 3.38 - Added `Color` methods, `SafeArea` widget, and `showBottomSheet` function. diff --git a/lib/src/widgets/container.dart b/lib/src/widgets/container.dart index 99577f4..d0529c9 100644 --- a/lib/src/widgets/container.dart +++ b/lib/src/widgets/container.dart @@ -131,6 +131,9 @@ class $Container implements Container, $Instance { @override Clip get clipBehavior => $value.clipBehavior; + @override + bool get isAntiAlias => $value.isAntiAlias; + @override Color? get color => $value.color; diff --git a/pubspec.yaml b/pubspec.yaml index 931ba2d..2323a49 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_eval description: Flutter bridge library for dart_eval, enabling creation of fully dynamic Flutter apps and widgets that can be loaded from a file or the Internet at runtime. -version: 0.8.2 +version: 0.8.3 homepage: https://github.com/ethanblake4/flutter_eval platforms: @@ -20,12 +20,12 @@ topics: environment: sdk: '>=3.4.0 <4.0.0' - flutter: ">=3.19.0 <4.0.0" + flutter: ">=3.41.0 <4.0.0" dependencies: flutter: sdk: flutter - dart_eval: ^0.8.1 + dart_eval: ^0.8.5 path_provider: ^2.1.0 http: ^1.1.0