diff --git a/CHANGELOG.md b/CHANGELOG.md index 97ae2b5..c10612c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ -## [1.0.10] (current dev) +## [1.0.11] +- remove private constructors to pass Dart's static analysis + +## [1.0.10] - fix Color opacity 0 flickering in Graphics. - new demo in example gallery "Connected" (node garden). diff --git a/lib/src/math.dart b/lib/src/math.dart index e54a782..158a48c 100644 --- a/lib/src/math.dart +++ b/lib/src/math.dart @@ -108,8 +108,8 @@ class Math { // * OLD code // static final max = m.max as T Function(T, T); - /// Private constructor to prevent instantiation - Math._(); + // Private constructor to prevent instantiation + // Math._(); /// Computes and returns an absolute value for the number specified by /// [value]. diff --git a/lib/src/utils/color_utils.dart b/lib/src/utils/color_utils.dart index 80b8a38..319c0f2 100644 --- a/lib/src/utils/color_utils.dart +++ b/lib/src/utils/color_utils.dart @@ -37,8 +37,8 @@ class ColorUtils { ); } - /// Private constructor to prevent instantiation - ColorUtils._(); + // Private constructor to prevent instantiation + // ColorUtils._(); /// Returns a color that is the analogous color of the given [color], with the /// given hue shift [angle] (in degrees). Analogous colors are colors that are diff --git a/lib/src/utils/context_utils.dart b/lib/src/utils/context_utils.dart index 56dab3c..bfc1720 100644 --- a/lib/src/utils/context_utils.dart +++ b/lib/src/utils/context_utils.dart @@ -4,8 +4,8 @@ import '../../graphx.dart'; /// A utility class for handling [BuildContext] related operations. class ContextUtils { - /// Private constructor to prevent instantiation - ContextUtils._(); + // Private constructor to prevent instantiation + // ContextUtils._(); /// Factory constructor to ensure exception. factory ContextUtils() { diff --git a/lib/src/utils/keyboard_util.dart b/lib/src/utils/keyboard_util.dart index 0755fcd..c4deddd 100644 --- a/lib/src/utils/keyboard_util.dart +++ b/lib/src/utils/keyboard_util.dart @@ -27,8 +27,8 @@ class GKeyboard { ); } - /// Private constructor to prevent instantiation - GKeyboard._(); + // Private constructor to prevent instantiation + //GKeyboard._(); /// Returns `true` if any of the specified [GKey] instances are currently /// pressed. diff --git a/lib/src/utils/layout_utils.dart b/lib/src/utils/layout_utils.dart index 5cba138..984a799 100644 --- a/lib/src/utils/layout_utils.dart +++ b/lib/src/utils/layout_utils.dart @@ -20,8 +20,8 @@ class LayoutUtils { ); } - /// Private constructor to prevent instantiation - LayoutUtils._(); + // Private constructor to prevent instantiation + //LayoutUtils._(); /// Arranges the [items] vertically in a single column, similar to Flutter's /// [Column], with optional [gap] between them. The column will start at the diff --git a/lib/src/utils/list_utils.dart b/lib/src/utils/list_utils.dart index b298085..a9f2f5b 100644 --- a/lib/src/utils/list_utils.dart +++ b/lib/src/utils/list_utils.dart @@ -11,8 +11,8 @@ class ListUtils { ); } - /// Private constructor to prevent instantiation - ListUtils._(); + // Private constructor to prevent instantiation + //ListUtils._(); /// Sorts the given list of [GDisplayObject]s using the merge sort algorithm. /// The [compare] callback is used to determine the ordering of the elements. diff --git a/lib/src/utils/math_utils.dart b/lib/src/utils/math_utils.dart index a765e50..36745ba 100644 --- a/lib/src/utils/math_utils.dart +++ b/lib/src/utils/math_utils.dart @@ -43,8 +43,8 @@ class MathUtils { ); } - /// Private constructor to prevent instantiation - MathUtils._(); + // Private constructor to prevent instantiation + //MathUtils._(); /// Calculates the next power of two for the given [value]. /// If [value] is already a power of two, it is returned. diff --git a/lib/src/utils/matrix_utils.dart b/lib/src/utils/matrix_utils.dart index 9625e5e..667ee10 100644 --- a/lib/src/utils/matrix_utils.dart +++ b/lib/src/utils/matrix_utils.dart @@ -11,8 +11,8 @@ class MatrixUtils { ); } - /// Private constructor to prevent instantiation - MatrixUtils._(); + // Private constructor to prevent instantiation + //MatrixUtils._(); /// Returns the bounding rectangle of the specified [rect] after applying the /// specified [matrix] transformation. diff --git a/lib/src/utils/painter_utils.dart b/lib/src/utils/painter_utils.dart index bfee635..3f57dba 100644 --- a/lib/src/utils/painter_utils.dart +++ b/lib/src/utils/painter_utils.dart @@ -18,8 +18,8 @@ abstract class PainterUtils { ); } - /// Private constructor to prevent instantiation - PainterUtils._(); + // Private constructor to prevent instantiation + //PainterUtils._(); /// Returns a paint object with the specified [alpha] value. /// diff --git a/lib/src/utils/string_utils.dart b/lib/src/utils/string_utils.dart index 01c67cd..6d43142 100644 --- a/lib/src/utils/string_utils.dart +++ b/lib/src/utils/string_utils.dart @@ -8,8 +8,8 @@ class StringUtils { ); } - /// Private constructor to prevent instantiation - StringUtils._(); + // Private constructor to prevent instantiation + // StringUtils._(); /// Parses a string value to become a boolean. /// diff --git a/lib/src/utils/svg_utils.dart b/lib/src/utils/svg_utils.dart index 365d107..51a319d 100644 --- a/lib/src/utils/svg_utils.dart +++ b/lib/src/utils/svg_utils.dart @@ -15,8 +15,8 @@ class SvgUtils { ); } - /// Private constructor to prevent instantiation - SvgUtils._(); + // Private constructor to prevent instantiation + //SvgUtils._(); /// Parses a raw SVG string into a [SvgData] object. /// diff --git a/lib/src/utils/system_utils.dart b/lib/src/utils/system_utils.dart index 3342892..7ad8335 100644 --- a/lib/src/utils/system_utils.dart +++ b/lib/src/utils/system_utils.dart @@ -27,8 +27,8 @@ class SystemUtils { ); } - /// Private constructor to prevent instantiation - SystemUtils._(); + // Private constructor to prevent instantiation + //SystemUtils._(); /// Initializes and returns the value of [_usesSkia] based on whether Skia can /// be used without errors. diff --git a/pubspec.yaml b/pubspec.yaml index db5ba42..216fe6d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: graphx description: Render API on top of CustomPainter to power-up your Flutter apps to the next level. -version: 1.0.10 +version: 1.0.11 homepage: https://github.com/roipeker/graphx environment: