diff --git a/example/pubspec.lock b/example/pubspec.lock index fffc7d97..3c443cdf 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -676,7 +676,7 @@ packages: path: ".." relative: true source: path - version: "0.1.0" + version: "0.2.0" vector_math: dependency: transitive description: diff --git a/lib/src/utils/custom_widgets/auto_direction.dart b/lib/src/utils/custom_widgets/auto_direction.dart index 097a5caa..b01bbd8a 100644 --- a/lib/src/utils/custom_widgets/auto_direction.dart +++ b/lib/src/utils/custom_widgets/auto_direction.dart @@ -32,10 +32,10 @@ class _AutoDirectionState extends State { @override void didUpdateWidget(AutoDirection oldWidget) { - if (isRTL(oldWidget.text) != isRTL(widget.text)) { - WidgetsBinding.instance!.addPostFrameCallback( - (_) => widget.onDirectionChange!(isRTL(widget.text))); - } + // if (isRTL(oldWidget.text) != isRTL(widget.text)) { + // WidgetsBinding.instance!.addPostFrameCallback( + // (_) => widget.onDirectionChange!(isRTL(widget.text))); + // } super.didUpdateWidget(oldWidget); }