File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,22 @@ class ZKText extends ZKNode {
174
174
this .layout ();
175
175
}
176
176
177
+ void setColor (Color color) {
178
+ _style = _style! .merge (TextStyle (color: color));
179
+ }
180
+
181
+ void setFontFamily (String fontFamily) {
182
+ _style = _style! .merge (TextStyle (fontFamily: fontFamily));
183
+ }
184
+
185
+ void setFontSize (double fontSize) {
186
+ _style = _style! .merge (TextStyle (fontSize: fontSize));
187
+ }
188
+
189
+ void refresh () {
190
+ this .setText (this .text);
191
+ }
192
+
177
193
////////////////////////////////////////////////////////////
178
194
///
179
195
/// Update, render and other related functions
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ description: Zerker is a flexible and lightweight flutter canvas graphic animati
11
11
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
12
12
# Read more about iOS versioning at
13
13
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14
- version : 2.2.5
14
+ version : 2.2.6
15
15
homepage : https://github.com/flutterkit/zerker
16
16
17
17
environment :
You can’t perform that action at this time.
0 commit comments