Skip to content

Commit

Permalink
v4.3.1 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
agordn52 committed Mar 4, 2023
1 parent 9c7307f commit 4005ae6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<a href="#"><img alt="GitHub stars" src="https://img.shields.io/github/stars/nylo-core/nylo?style=plastic"></a>
</p>

## Nylo (v4.3.0)
## Nylo (v4.3.1)

Nylo is a micro-framework for Flutter which is designed to help simplify developing apps. Every project provides a simple boilerplate and MVC pattern to help you build apps easier.

Expand Down
6 changes: 3 additions & 3 deletions lib/bootstrap/extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ extension NyText on Text {

/// Make the font bold.
Text fontWeightBold() {
return this.setStyle(style!.copyWith(fontWeight: FontWeight.bold));
return copyWith(style: TextStyle(fontWeight: FontWeight.bold));
}

/// Make the font light.
Text fontWeightLight() {
return this.setStyle(style!.copyWith(fontWeight: FontWeight.w300));
return copyWith(style: TextStyle(fontWeight: FontWeight.w300));
}

/// Change the [style].
Expand All @@ -79,7 +79,7 @@ extension NyText on Text {
/// Sets the color from your [ColorStyles] or [Color].
Text setColor(
BuildContext context, Color Function(ColorStyles color) newColor, {String? themeId}) {
return setStyle(this.style!.copyWith(color: newColor(ThemeColor.get(context, themeId: themeId))));
return copyWith(style: TextStyle(color: newColor(ThemeColor.get(context, themeId: themeId))));
}

/// Aligns text to the left.
Expand Down

0 comments on commit 4005ae6

Please sign in to comment.