StandardSearchBar constructor

const StandardSearchBar({
  1. Key? key,
  2. double? width,
  3. double height = 56,
  4. BoxConstraints constraints = const BoxConstraints(maxWidth: 720),
  5. EdgeInsetsGeometry padding = EdgeInsets.zero,
  6. double borderRadius = 28,
  7. Color bgColor = Colors.white,
  8. StandardIcons leading = const StandardIcons(icons: [Icon(Icons.search, size: 24, color: Colors.grey)]),
  9. 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,
});