Skip to content

Commit

Permalink
Make dependency_overrides optional
Browse files Browse the repository at this point in the history
Fix #3187
  • Loading branch information
FeodorFitsner committed May 3, 2024
1 parent 578bf6d commit 519a035
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* LineChart: fix regression ([#3033](https://github.com/flet-dev/flet/issues/3033))
* Fixed: OAuth expiry of token will hang fastapi server ([#3150](https://github.com/flet-dev/flet/issues/3150))
* Fixed: Disabled the dropwown, but the color isnot gray ([#2989](https://github.com/flet-dev/flet/issues/2989))
* Fixed: `pubspec.yaml` for adding custom Flutter packages requires `dependency_overrides` ([#3187](https://github.com/flet-dev/flet/issues/3187))

# 0.22.0

Expand Down
1 change: 1 addition & 0 deletions packages/flet/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* LineChart: fix regression ([#3033](https://github.com/flet-dev/flet/issues/3033))
* Fixed: OAuth expiry of token will hang fastapi server ([#3150](https://github.com/flet-dev/flet/issues/3150))
* Fixed: Disabled the dropwown, but the color isnot gray ([#2989](https://github.com/flet-dev/flet/issues/2989))
* Fixed: `pubspec.yaml` for adding custom Flutter packages requires `dependency_overrides` ([#3187](https://github.com/flet-dev/flet/issues/3187))

# 0.22.0

Expand Down
2 changes: 1 addition & 1 deletion sdk/python/packages/flet/src/flet/cli/commands/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def handle(self, options: argparse.Namespace) -> None:
for k, v in flutter_dependencies.items():
pubspec["dependencies"][k] = v

if src_pubspec and src_pubspec["dependency_overrides"]:
if src_pubspec and "dependency_overrides" in src_pubspec:
pubspec["dependency_overrides"] = {}
for k, v in src_pubspec["dependency_overrides"].items():
pubspec["dependency_overrides"][k] = v
Expand Down

0 comments on commit 519a035

Please sign in to comment.