File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,25 @@ class _HeaderFieldState extends State<HeaderField> {
75
75
decorationBuilder: (context, child) =>
76
76
suggestionBoxDecorations (context, child, colorScheme),
77
77
constraints: const BoxConstraints (maxHeight: 400 ),
78
+ listBuilder: (context, children) => Theme (
79
+ data: ThemeData (
80
+ scrollbarTheme: ScrollbarThemeData (
81
+ thumbColor: MaterialStateProperty .all (colorScheme.inverseSurface),
82
+ trackColor: MaterialStateProperty .all (
83
+ colorScheme.inverseSurface.withOpacity (0.3 )),
84
+ ),
85
+ ),
86
+ child: ListView .builder (
87
+ shrinkWrap: true ,
88
+ itemCount: children.length,
89
+ itemBuilder: (context, index) {
90
+ return Container (
91
+ margin: const EdgeInsets .all (8 ),
92
+ child: children[index],
93
+ );
94
+ },
95
+ ),
96
+ ),
78
97
builder: (context, controller, focusNode) => TextField (
79
98
onChanged: widget.onChanged,
80
99
controller: controller,
You can’t perform that action at this time.
0 commit comments