@@ -22,6 +22,7 @@ import 'toolbar/link_style_button.dart';
22
22
import 'toolbar/quill_font_family_button.dart' ;
23
23
import 'toolbar/quill_font_size_button.dart' ;
24
24
import 'toolbar/quill_icon_button.dart' ;
25
+ import 'toolbar/search_button.dart' ;
25
26
import 'toolbar/select_alignment_button.dart' ;
26
27
import 'toolbar/select_header_style_button.dart' ;
27
28
import 'toolbar/toggle_check_list_button.dart' ;
@@ -110,6 +111,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
110
111
bool showVideoButton = true ,
111
112
bool showCameraButton = true ,
112
113
bool showDirection = false ,
114
+ bool showSearchButton = true ,
113
115
OnImagePickCallback ? onImagePickCallback,
114
116
OnVideoPickCallback ? onVideoPickCallback,
115
117
MediaPickSettingSelector ? mediaPickSettingSelector,
@@ -158,7 +160,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
158
160
showHeaderStyle,
159
161
showListNumbers || showListBullets || showListCheck || showCodeBlock,
160
162
showQuote || showIndent,
161
- showLink
163
+ showLink || showSearchButton
162
164
];
163
165
164
166
//default font size values
@@ -494,6 +496,14 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
494
496
iconTheme: iconTheme,
495
497
dialogTheme: dialogTheme,
496
498
),
499
+ if (showSearchButton)
500
+ SearchButton (
501
+ icon: Icons .search,
502
+ iconSize: toolbarIconSize,
503
+ controller: controller,
504
+ iconTheme: iconTheme,
505
+ dialogTheme: dialogTheme,
506
+ ),
497
507
if (customButtons.isNotEmpty)
498
508
if (showDividers)
499
509
VerticalDivider (
0 commit comments