StandardSearchBar constructor
const
StandardSearchBar({
- Key? key,
- double? width,
- double height = 56,
- BoxConstraints constraints = const BoxConstraints(maxWidth: 720),
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- double borderRadius = 28,
- Color bgColor = Colors.white,
- StandardIcons leading = const StandardIcons(icons: [Icon(Icons.search, size: 24, color: Colors.grey)]),
- StandardIcons? trailing,
Implementation
const StandardSearchBar({
super.key,
this.width,
this.height = 56,
this.constraints = const BoxConstraints(maxWidth: 720),
this.padding = EdgeInsets.zero,
this.borderRadius = 28,
this.bgColor = Colors.white,
this.leading = const StandardIcons(
icons: [
Icon(Icons.search, size: 24, color: Colors.grey),
],
),
this.trailing,
});