From 44e26460d87bdd4eac964ad38fefbfdc65436dab Mon Sep 17 00:00:00 2001 From: Hans Kokx Date: Thu, 6 Mar 2025 15:34:39 +0100 Subject: [PATCH] Added nbsp and updated package deps --- CHANGELOG.md | 5 +++++ lib/src/extensions/string.dart | 4 ++++ pubspec.yaml | 6 +++--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee8fa62..ac47188 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.3.0 + +- Added a non-breaking space character to `CommonString` as `CommonString.nbsp` +- Updated package dependencies + ## 1.2.6 - Added the `printValue()` extension. diff --git a/lib/src/extensions/string.dart b/lib/src/extensions/string.dart index 503ca74..378fab8 100644 --- a/lib/src/extensions/string.dart +++ b/lib/src/extensions/string.dart @@ -8,6 +8,10 @@ abstract class CommonString { /// A bullet point (`•`) is a small, round symbol used in typography to indicate a new /// item in a list or to separate items in a series. static const String bulletPoint = "•"; + + /// A non-breaking space is similar to a standard space, however it prevents automatic + /// line breaks. + static const String nbsp = "\u00A0"; } /// An extension that adds convenience methods to handle nullability and diff --git a/pubspec.yaml b/pubspec.yaml index ceebb86..c1eaa21 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: arcane_helper_utils description: Provides a variety of helpful utilities and extensions for Flutter and Dart. -version: 1.2.6 +version: 1.3.0 repository: https://github.com/hanskokx/arcane_helper_utils issue_tracker: https://github.com/hanskokx/arcane_helper_utils/issues @@ -14,8 +14,8 @@ environment: sdk: ^3.5.2 dependencies: - freezed_annotation: ^2.4.4 + freezed_annotation: ^3.0.0 week_number: ^1.1.0 dev_dependencies: - arcane_analysis: ^1.0.1 + arcane_analysis: ^1.0.3