Breaking changes
-
Remove the semi colon in golden file names to support using the package on a Windows machine.
This is a breaking change for users who have generated golden files with the previous version of the library. The golden file names will now be
preview/${windowConfig.name}-${name.snakeCase}$localSuffix.pnginstead ofpreview/${windowConfig.name}:${name.snakeCase}$localSuffix.png.To resolve this, you can either rename the golden files manually or regenerate them.
To ease the migration, we provide a script that will rename your goldens files to the new format:
#!/bin/bash # Function to rename files in directories named "preview" rename_files_in_preview() { # Find directories named "preview" find . -type d -name "preview" | while read -r dir; do echo "Processing directory: $dir" # Find files within these directories find "$dir" -type f | while read -r file; do # New filename by replacing ':' with '-' new_name=$(echo "$file" | sed 's/:/-/g') if [ "$file" != "$new_name" ]; then mv "$file" "$new_name" echo "Renamed $file to $new_name" fi done done } # Call the function rename_files_in_preview()
You can add the script in a
.shfile and run it from your project root directory.
- fix: Update broken link on README.md
- fix: add support for flutter >=3.10.0
- fix: add support for dart >=3.0.5
- feat: add the
loadFontsFromPackagemethod to load fonts from a package which name does not match the corresponding folder name - example: add multi-packages example to showcase loading fonts from a separate package
- fix: replace iterable with a list in the await image method.
Breaking changes
-
Remove the space in golden file names.
This is a breaking change for users who have generated golden files with the previous version of the library. The golden file names will now be
preview/${windowConfig.name}:${name.snakeCase}$localSuffix.pnginstead ofpreview/${windowConfig.name}: ${name.snakeCase}$localSuffix.png.To resolve this, you can either rename the golden files manually or regenerate them.
- fix: set the image precaching to true by default
- feat: add an option to disable the image precaching
- fix: runtime platform check.
- fix: font loader with package not working.
- feat: create is runtime platform extension.
- Add .pubignore to reduce package size.
- Improve pub.dev page presentation.
- Initial release.