Skip to content

Instantly share code, notes, and snippets.

@DieracDelta
Created December 31, 2025 15:01
Show Gist options
  • Select an option

  • Save DieracDelta/e078167b2fbdff2d64ec9391ca2051ff to your computer and use it in GitHub Desktop.

Select an option

Save DieracDelta/e078167b2fbdff2d64ec9391ca2051ff to your computer and use it in GitHub Desktop.
version diff pub-balanced_text-0.0.3
.gitattributes --- Text
No changes.
LICENSE --- Text
No changes.
CHANGELOG.md --- Text
No changes.
README.md --- Text
No changes.
.gitignore --- Text
No changes.
.metadata --- Text
No changes.
sample.jpg --- Binary
No changes.
example/pubspec.yaml --- YAML
No changes.
example/analysis_options.yaml --- YAML
No changes.
pubspec.yaml --- YAML
No changes.
example/lib/main.dart --- Dart
No changes.
lib/balanced_text.dart --- Dart
84 textDirection: TextDirection.ltr, 84 textDirection: TextDirection.ltr,
85 )..layout(); 85 )..layout();
86 86
87 final width=textPainter.size.width; 87 return textPainter.size.width;
88 textPainter.dispose(); ..
89 return width; ..
90 } 88 }
91 89
92 final words = data.split(' '); 90 final words = data.split(' ');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment