Skip to content

Commit

Permalink
Restoring alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
amantoux committed May 5, 2024
1 parent 3b27d2d commit cb31f9f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/fleather/lib/src/widgets/editable_text_block.dart
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,10 @@ class _NumberPoint extends StatelessWidget {

@override
Widget build(BuildContext context) {
final styleHeight = style.height;
return Container(
// Empirically, depending on height of the style, we need to
// align at top or at bottom
alignment: styleHeight == null || styleHeight <= 1
? AlignmentDirectional.topEnd
: AlignmentDirectional.bottomEnd,
alignment: AlignmentDirectional.topEnd,
width: width,
padding: EdgeInsetsDirectional.only(end: padding),
child: Text(withDot ? '$number.' : '$number', style: style),
Expand Down

0 comments on commit cb31f9f

Please sign in to comment.