Regarding Flutter Search Delegate:
How to remove text underline and blue line (color) below text?
Or
to set transparent or to change color?
I don't want to change the complete Widget with new Textfields etc. because the SearchDelegate is already good or is a finished widget.
My Code is within the SearchDelegate Widget of Flutter:
@override
ThemeData appBarTheme(BuildContext context) {
return ThemeData(
dividerTheme: DividerThemeData(
color: Colors.white,
),
primaryIconTheme: IconThemeData(color: Colors.white),
scaffoldBackgroundColor: Colors.white, // for the body color
brightness: Brightness.dark, // to get white statusbar icons
primaryColor: glovar.getColor(farbnr), // set background color of SearchBar
textSelectionTheme: TextSelectionThemeData(
cursorColor: Colors.white,
), // cursor color
);
}