@@ -21,19 +21,24 @@ class WindowsSearchDelegate extends AbstractPlatformSearchDelegate {
2121 @override
2222 Widget buildScaffold (Widget ? body, BuildContext context) {
2323 return fluent.ScaffoldPage (
24- content: Padding (
25- padding: EdgeInsets .symmetric (horizontal: 16 , vertical: 32 ),
26- child: Column (
27- children: [
28- fluent.AutoSuggestBox <String >(
29- key: _autoSuggestBoxKey,
30- placeholder: 'Search' ,
31- onSelected: (item) => print (item),
32- controller: queryTextController,
33- items: _kPlatformNames,
34- ),
35- Spacer (),
36- ],
24+ content: fluent.NavigationView (
25+ appBar: fluent.NavigationAppBar (
26+ title: Text ("Search" , style: TextStyle (fontSize: 22 , fontWeight: fluent.FontWeight .bold)),
27+ ),
28+ pane: fluent.NavigationPane (
29+ displayMode: fluent.PaneDisplayMode .compact,
30+ header: SizedBox .expand (),
31+ autoSuggestBoxReplacement: fluent.Icon (fluent.FluentIcons .search),
32+ autoSuggestBox: fluent.AutoSuggestBox (
33+ key: _autoSuggestBoxKey,
34+ placeholder: 'Search' ,
35+ onSelected: (item) => print (item),
36+ controller: queryTextController,
37+ items: _kPlatformNames,
38+ ),
39+ ),
40+ content: Container (
41+ color: fluent.Colors .white,
3742 ),
3843 ),
3944 );
0 commit comments