Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 12.0.9
- **FIX**(text-editor): Disable system text scale factor in `RoundedBackgroundTextField` to ensure consistent text sizing regardless of user accessibility settings.

## 12.0.8
- **PERF**(paint-editor): Optimize freestyle path building by reducing redundant `moveTo` calls, eliminating intermediate list allocations, and using `distanceSquared` instead of `distance`.
- **PERF**(paint-editor): Skip `Opacity` widget wrapping when layer opacity is 1.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,22 @@ class _RoundedBackgroundTextFieldState
final fontSize =
(widget.style.fontSize ?? defaultTextStyle.style.fontSize ?? 16);

return Stack(
clipBehavior: Clip.none,
alignment: switch (widget.textAlign) {
TextAlign.end => AlignmentDirectional.centerEnd,
TextAlign.start => AlignmentDirectional.centerStart,
TextAlign.left => Alignment.centerLeft,
TextAlign.right => Alignment.centerRight,
TextAlign.center || _ => Alignment.topCenter,
},
children: [
if (_textController.text.isNotEmpty) _buildBackgroundText(),
_buildEditableText(fontSize: fontSize),
],
return MediaQuery(
data: MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling),
child: Stack(
clipBehavior: Clip.none,
alignment: switch (widget.textAlign) {
TextAlign.end => AlignmentDirectional.centerEnd,
TextAlign.start => AlignmentDirectional.centerStart,
TextAlign.left => Alignment.centerLeft,
TextAlign.right => Alignment.centerRight,
TextAlign.center || _ => Alignment.topCenter,
},
children: [
if (_textController.text.isNotEmpty) _buildBackgroundText(),
_buildEditableText(fontSize: fontSize),
],
),
);
}

Expand Down
4 changes: 1 addition & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pro_image_editor
description: "A Flutter image editor: Seamlessly enhance your images with user-friendly editing features."
version: 12.0.8
version: 12.0.9
homepage: https://github.com/hm21/pro_image_editor/
repository: https://github.com/hm21/pro_image_editor/
documentation: https://github.com/hm21/pro_image_editor/
Expand Down Expand Up @@ -62,10 +62,8 @@ flutter:
pluginClass: ProImageEditorPlugin
ios:
pluginClass: ProImageEditorPlugin
sharedDarwinSource: true
macos:
pluginClass: ProImageEditorPlugin
sharedDarwinSource: true
assets:
- path: lib/web/web_worker.dart.js
platforms: [web]
Expand Down
Loading