@@ -11,13 +11,13 @@ import 'dart:ui';
1111class {{textStyleClass}} {
1212 {{textStyleClass}}._();
1313
14- {{#fontFamillies }}
14+ {{#fontFamilies }}
1515 static const String {{varName}} = '{{fontName}}';
16- {{/fontFamillies }}
16+ {{/fontFamilies }}
1717
1818 {{#textStyles}}
1919 static const {{#type}}{{type}} {{/type}}{{name}} = TextStyle(
20- fontFamily: {{fontFamilly }},
20+ fontFamily: {{fontFamily }},
2121 fontSize: {{fontSize}},
2222 fontStyle: {{fontStyle}},
2323 fontWeight: FontWeight.w{{fontWeight}},{{#decoration}}\n decoration: {{decoration}},{{/decoration}}{{#letterSpacing}}\n letterSpacing: {{letterSpacing}},{{/letterSpacing}}{{#color}}\n color: Color({{color}}),{{/color}}
@@ -42,11 +42,11 @@ export function generateTextStyleFile(
4242 options : OptionsType ,
4343) : DownloadableFile {
4444 return {
45- name : options ?. formatByType ?. color ?. fileName ?? 'text-styles.dart' ,
45+ name : options ?. formatByType ?. textStyle ?. fileName ?? 'text-styles.dart' ,
4646 value : {
4747 content : templateContent . render ( {
48- textStyleClass : options ?. formatByType ?. color ?. className ?? 'SpecifyTextStyle' ,
49- fontFamillies : [ ...new Set ( textStyles . map ( v => v . value . font . value . fontFamily ) ) ] . map (
48+ textStyleClass : options ?. formatByType ?. textStyle ?. className ?? 'SpecifyTextStyle' ,
49+ fontFamilies : [ ...new Set ( textStyles . map ( v => v . value . font . value . fontFamily ) ) ] . map (
5050 fontName => ( {
5151 fontName,
5252 varName : `_${ camelCase ( fontName ) } ` ,
@@ -55,7 +55,7 @@ export function generateTextStyleFile(
5555 textStyles : textStyles . map ( textStyle => ( {
5656 name : camelCase ( textStyle . name ) ,
5757 type : options ?. formatByType ?. textStyle ?. classType ?? 'TextStyle' ,
58- fontFamilly : `_${ camelCase ( textStyle . value . font . value . fontFamily ) } ` ,
58+ fontFamily : `_${ camelCase ( textStyle . value . font . value . fontFamily ) } ` ,
5959 fontSize : textStyle . value . fontSize . value . measure . toFixed ( 2 ) ,
6060 fontStyle : `FontStyle.${ ! ! textStyle . value . font . value . isItalic ? 'italic' : 'normal' } ` ,
6161 fontWeight : textStyle . value . font . value . fontWeight ,
0 commit comments