Skip to content

Commit

Permalink
List numbers should follow the theme (#339)
Browse files Browse the repository at this point in the history
* List numbers should follow the theme
  • Loading branch information
amantoux authored May 5, 2024
1 parent cc3921c commit 428bf54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/fleather/lib/src/widgets/editable_text_block.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class EditableTextBlock extends StatelessWidget {

leadingWidgets.add(_NumberPoint(
number: currentIndex + 1,
style: theme.paragraph.style,
style: theme.lists.style,
width: 32.0,
padding: 8.0,
));
Expand Down Expand Up @@ -319,6 +319,8 @@ class _NumberPoint extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
// Empirically, depending on height of the style, we need to
// align at top or at bottom
alignment: AlignmentDirectional.topEnd,
width: width,
padding: EdgeInsetsDirectional.only(end: padding),
Expand Down
2 changes: 1 addition & 1 deletion packages/fleather/lib/src/widgets/editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import 'package:parchment_delta/parchment_delta.dart';

import '../../util.dart';
import '../rendering/editor.dart';
import '../services/spell_check_suggestions_toolbar.dart';
import '../services/clipboard_manager.dart';
import '../services/spell_check_suggestions_toolbar.dart';
import 'baseline_proxy.dart';
import 'controller.dart';
import 'cursor.dart';
Expand Down

0 comments on commit 428bf54

Please sign in to comment.