Revert changes in _SelectHeaderStyleButtonState

pull/19/head
singerdmx 4 years ago
parent 39f0dad270
commit 55da7d626c
  1. 2
      lib/widgets/text_line.dart
  2. 8
      lib/widgets/toolbar.dart

@ -60,7 +60,7 @@ class TextLine extends StatelessWidget {
textAlign, textAlign,
textDirection, textDirection,
1.0, 1.0,
Localizations.localeOf(context), Localizations.localeOf(context, nullOk: true),
strutStyle, strutStyle,
TextWidthBasis.parent, TextWidthBasis.parent,
null); null);

@ -446,13 +446,7 @@ Widget _selectHeadingStyleButtonBuilder(
height: iconSize * 1.77, height: iconSize * 1.77,
fillColor: Theme.of(context).canvasColor, fillColor: Theme.of(context).canvasColor,
child: Text( child: Text(
_valueToText[value.key == "header" _valueToText[value],
? Attribute.header
: (value.key == "h1")
? Attribute.h1
: (value.key == "h2")
? Attribute.h2
: Attribute.h3],
style: TextStyle(fontSize: 13, fontWeight: FontWeight.w600), style: TextStyle(fontSize: 13, fontWeight: FontWeight.w600),
), ),
initialValue: value, initialValue: value,

Loading…
Cancel
Save