electric_shapes 1.0.11
electric_shapes: ^1.0.11 copied to clipboard
Flutter package with electric network icons and technical symbols for diagrams and utility apps.
1.0.11 #
Refactor: Update text color property in ElectricShape
- Update the
ElectricShapewidget to use the primarycolorparameter for text styling instead ofdarkColor.
1.0.10 #
Refactor: Adjust Column constraints in ElectricShape
- Remove
mainAxisSize: .minfrom theColumnwidget to allow it to use default layout behavior.
1.0.9 #
Refactor: Simplify ElectricShape layout by removing automatic scaling logic
- Remove the
LayoutBuilderandFittedBoxwrappers from theElectricShapebuild method. - Render the
buildShape(context)widget directly within the mainColumn. - Eliminate conditional logic that previously handled width constraints and fitted the shape to the available horizontal space.
1.0.8 #
Refactor: Enhance ElectricShape scaling and layout constraints
- Replace the
Expandedwidget with aLayoutBuilderto better handle both bounded and unbounded width constraints. - Implement dynamic scaling using
FittedBoxwithBoxFit.fitWidthto ensure shapes properly fit within available horizontal space. - Extract the shape building logic into a local variable to optimize the layout structure.
1.0.6 #
Refactor: Improve copyWith flexibility and clean up symbol internals
- Update
copyWithmethods across all symbol classes to support explicitly settinglatLongtonullusing a sentinel object pattern. - Refine
ElectricShapeandLatlongDescWidgetlayouts usingMainAxisSize.minandFlexibletext to prevent layout overflows and truncate coordinate labels safely. - Adjust font scaling for coordinate labels within the
ElectricShapebase class. - Add a
LatLong.empty()factory constructor to theLatLongmodel. - Update the minimum Dart SDK requirement to
3.10.0inpubspec.yaml. - Remove hardcoded default values for
latLongandtextfromAterramentoExistenteSymbol. - Update the example app to inject sample
LatLongcoordinates intoAterramentoExistenteSymbolviacopyWith. - Remove redundant internal imports from switch symbol widgets and rely on the package's public export barrel instead.
1.0.5 #
Refactor: Extract LatLong class to a dedicated models file
- Move the
LatLongcoordinate model fromlatlong_desc_widget.dartto a newsrc/models.dartfile for better architectural separation. - Export
src/models.dartfrom the mainelectric_shapes.dartlibrary file to make it available to package users. - Update imports across all symbol widgets—including transformers, poles, switches, grounding, and networks—to reference the new model location.
- Standardize imports in various symbol files, ensuring consistent access to
ElectricShapeandLatLong.
1.0.4 #
Refactor: Expand ElectricShape.copyWith with metadata properties
- Update the
ElectricShapebase class signature forcopyWithto includetext,fontSize, andlatLongparameters. - Implement the updated
copyWithmethod across all concrete symbol subclasses, including transformers, poles, switches, grounding, surge arresters, and network types. - Ensure new metadata properties are correctly persisted when creating copies of symbol instances.
- Add necessary imports for
latlong_desc_widget.dartacross the symbol library to support geographical coordinate types.
1.0.3 #
Docs: Add documentation for electric shape and coordinate widgets
- Add documentation comments to
ElectricShapeproperties, includingstrokeWidth,text, andlatLong. - Document the
buildShapemethod to clarify its role in rendering the primary shape versus auxiliary elements. - Add documentation for the
LatLongclass, its decimal degree fields, andLatlongDescWidgetparameters. - Reformat indentation for the
colorargument insideColor.alphaBlendinelectric_shape.dart.
1.0.2 #
Refactor: Clean up shapes.dart export file
- Remove redundant documentation comments from
lib/src/shapes/shapes.dart. - Clean up whitespace and formatting in export statements.
1.0.1 #
Docs: Add comprehensive DartDoc documentation for symbols and widgets
- Add descriptive documentation in Portuguese for all electrical symbol classes, including transformers, poles, switches, grounding, and network types.
- Document the base
ElectricShapeclass and its common properties (size,color,strokeWidth). - Include detailed comments for the
ElectricIconsfont-based icon constants, describing each electrical glyph. - Add documentation for the
ElectricIconutility widget and its API. - Document internal helper classes like
HorizontalLinePainter. - Provide context for the
shapes.dartbarrel file and the library's overall structure.
1.0.0 #
Initial release of electric_shapes.
- Added custom electric network icons through
ElectricIcons - Added
ElectricIconhelper widget forIconDatausage - Added symbol widgets for technical electric shapes using
CustomPainter - Added symbols for transformers, poles, grounding, lightning arresters, switches, and medium/low voltage networks
- Added support for existing and projected variants where applicable
- Added package exports through
electric_shapes.dart
