Skip to content

Commit 457d93d

Browse files
authored
feat: add normal and bold to StacFontWeight (#261)
* feat: add `normal` and `bold` to `StacFontWeight` * Fix: remove blank line in stac_text.dart
1 parent 92a7201 commit 457d93d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/stac/lib/src/parsers/widgets/stac_font_weight/stac_font_weight.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ enum StacFontWeight {
99
w600,
1010
w700,
1111
w800,
12-
w900;
12+
w900,
13+
normal,
14+
bold;
1315

1416
FontWeight get value {
1517
switch (this) {
@@ -39,6 +41,10 @@ enum StacFontWeight {
3941

4042
case StacFontWeight.w900:
4143
return FontWeight.w900;
44+
case StacFontWeight.normal:
45+
return FontWeight.normal;
46+
case StacFontWeight.bold:
47+
return FontWeight.bold;
4248
}
4349
}
4450
}

packages/stac/lib/src/parsers/widgets/stac_text_style/stac_text_style.g.dart

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)