chore: update the menu item size for code_block, horizaontal_rule and tex_block

This commit is contained in:
Lucas.Xu
2022-10-07 11:39:49 +08:00
parent e6d4f9e3f7
commit e27e8e43e1
3 changed files with 15 additions and 3 deletions

View File

@ -46,7 +46,11 @@ ShortcutEventHandler _ignorekHandler = (editorState, event) {
SelectionMenuItem codeBlockMenuItem = SelectionMenuItem( SelectionMenuItem codeBlockMenuItem = SelectionMenuItem(
name: () => 'Code Block', name: () => 'Code Block',
icon: const Icon(Icons.abc), icon: const Icon(
Icons.abc,
color: Colors.black,
size: 18.0,
),
keywords: ['code block'], keywords: ['code block'],
handler: (editorState, _, __) { handler: (editorState, _, __) {
final selection = final selection =

View File

@ -38,7 +38,11 @@ ShortcutEventHandler _insertHorzaontalRule = (editorState, event) {
SelectionMenuItem horizontalRuleMenuItem = SelectionMenuItem( SelectionMenuItem horizontalRuleMenuItem = SelectionMenuItem(
name: () => 'Horizontal rule', name: () => 'Horizontal rule',
icon: const Icon(Icons.horizontal_rule), icon: const Icon(
Icons.horizontal_rule,
color: Colors.black,
size: 18.0,
),
keywords: ['horizontal rule'], keywords: ['horizontal rule'],
handler: (editorState, _, __) { handler: (editorState, _, __) {
final selection = final selection =

View File

@ -6,7 +6,11 @@ import 'package:flutter_math_fork/flutter_math.dart';
SelectionMenuItem teXBlockMenuItem = SelectionMenuItem( SelectionMenuItem teXBlockMenuItem = SelectionMenuItem(
name: () => 'Tex', name: () => 'Tex',
icon: const Icon(Icons.text_fields_rounded), icon: const Icon(
Icons.text_fields_rounded,
color: Colors.black,
size: 18.0,
),
keywords: ['tex, latex, katex'], keywords: ['tex, latex, katex'],
handler: (editorState, _, __) { handler: (editorState, _, __) {
final selection = final selection =