font feature bug workaround

This commit is contained in:
Thibault Deckers 2022-05-12 22:13:32 +09:00
parent 90bef2a5ed
commit f78448ff91

View file

@ -39,7 +39,6 @@ class SectionHeader<T> extends StatelessWidget {
child: Text.rich( child: Text.rich(
TextSpan( TextSpan(
children: [ children: [
// TODO TLAD [flutter 3] https://github.com/flutter/flutter/issues/103615
WidgetSpan( WidgetSpan(
alignment: widgetSpanAlignment, alignment: widgetSpanAlignment,
child: _SectionSelectableLeading<T>( child: _SectionSelectableLeading<T>(
@ -56,6 +55,8 @@ class SectionHeader<T> extends StatelessWidget {
onPressed: selectable ? () => _toggleSectionSelection(context) : null, onPressed: selectable ? () => _toggleSectionSelection(context) : null,
), ),
), ),
// TODO TLAD [flutter 3] remove this zero-width span when this is fixed: https://github.com/flutter/flutter/issues/103615
TextSpan(text: '\u200B' * 3, style: Constants.titleTextStyle),
TextSpan( TextSpan(
text: title, text: title,
style: Constants.titleTextStyle, style: Constants.titleTextStyle,