@@ -374,14 +374,16 @@ void main() {
374
374
});
375
375
376
376
test ('TextStyle apply' , () {
377
- const TextStyle style = TextStyle (fontSize: 10 );
378
- expect (style.apply ().shadows, isNull );
377
+ const TextStyle style = TextStyle (fontSize: 10 , shadows : < ui. Shadow > [], fontStyle : FontStyle .normal, fontFeatures : < ui. FontFeature > [], textBaseline : TextBaseline .alphabetic );
378
+ expect (style.apply ().shadows, const < ui. Shadow > [] );
379
379
expect (style.apply (shadows: const < ui.Shadow > [ui.Shadow (blurRadius: 2.0 )]).shadows, const < ui.Shadow > [ui.Shadow (blurRadius: 2.0 )]);
380
- expect (style.apply ().fontStyle, isNull );
380
+ expect (style.apply ().fontStyle, FontStyle .normal );
381
381
expect (style.apply (fontStyle: FontStyle .italic).fontStyle, FontStyle .italic);
382
382
expect (style.apply ().locale, isNull);
383
383
expect (style.apply (locale: const Locale .fromSubtags (languageCode: 'es' )).locale, const Locale .fromSubtags (languageCode: 'es' ));
384
- expect (style.apply ().fontFeatures, isNull );
384
+ expect (style.apply ().fontFeatures, const < ui. FontFeature > [] );
385
385
expect (style.apply (fontFeatures: const < ui.FontFeature > [ui.FontFeature .enable ('test' )]).fontFeatures, const < ui.FontFeature > [ui.FontFeature .enable ('test' )]);
386
+ expect (style.apply ().textBaseline, TextBaseline .alphabetic);
387
+ expect (style.apply (textBaseline: TextBaseline .ideographic).textBaseline, TextBaseline .ideographic);
386
388
});
387
389
}
0 commit comments