Skip to content

Commit b679863

Browse files
committed
using FAIcons everywhere
1 parent d4cbb2d commit b679863

File tree

6 files changed

+9
-13
lines changed

6 files changed

+9
-13
lines changed

lib/src/toolbar.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ class Toolbar {
4646
TextSelection? textSelection,
4747
}) {
4848
if (!focusNode.hasFocus) {
49+
print('Editor is not in focus');
50+
4951
isEditorFocused(true);
5052
focusNode.requestFocus();
5153
}

lib/widgets/image_network.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ImageNetworkMarkdown extends StatelessWidget {
3434
child: Column(
3535
mainAxisAlignment: MainAxisAlignment.center,
3636
children: const [
37-
Icon(FontAwesomeIcons.triangleExclamation),
37+
FaIcon(FontAwesomeIcons.triangleExclamation),
3838
SizedBox(height: 20),
3939
Text(
4040
"Failed Load Image",

lib/widgets/markdown_parse.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class MarkdownParse extends StatelessWidget {
176176
},
177177
checkboxBuilder: checkboxBuilder ??
178178
(bool value) {
179-
return Icon(
179+
return FaIcon(
180180
value
181181
? FontAwesomeIcons.solidSquareCheck
182182
: FontAwesomeIcons.square,

lib/widgets/markdown_parse_body.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class MarkdownParseBody extends StatelessWidget {
164164
},
165165
checkboxBuilder: checkboxBuilder ??
166166
(bool value) {
167-
return Icon(
167+
return FaIcon(
168168
value
169169
? FontAwesomeIcons.solidSquareCheck
170170
: FontAwesomeIcons.square,

lib/widgets/modal_select_emoji.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class _ModalSelectEmojiState extends State<ModalSelectEmoji> {
136136
),
137137
child: Row(
138138
children: [
139-
const Icon(
139+
const FaIcon(
140140
FontAwesomeIcons.magnifyingGlass,
141141
size: 17,
142142
),

lib/widgets/toolbar_item.dart

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ class ToolbarItem extends StatelessWidget {
3737
fontWeight: FontWeight.w900,
3838
),
3939
)
40-
: Icon(
41-
icon,
42-
size: 16,
43-
),
40+
: FaIcon(icon, size: 16),
4441
tooltip: tooltip,
4542
),
4643
)
@@ -58,10 +55,7 @@ class ToolbarItem extends StatelessWidget {
5855
fontWeight: FontWeight.w900,
5956
),
6057
)
61-
: Icon(
62-
icon,
63-
size: 16,
64-
),
58+
: FaIcon(icon, size: 16),
6559
),
6660
),
6761
expanded: Container(
@@ -75,7 +69,7 @@ class ToolbarItem extends StatelessWidget {
7569
ExpandableButton(
7670
child: const Padding(
7771
padding: EdgeInsets.all(8.0),
78-
child: Icon(
72+
child: FaIcon(
7973
FontAwesomeIcons.solidCircleXmark,
8074
size: 16,
8175
color: Colors.red,

0 commit comments

Comments
 (0)