SmartSearchOverlayConfig class
Configuration for the search overlay appearance and behavior.
Constructors
- SmartSearchOverlayConfig({OverlayPosition position = OverlayPosition.auto, double maxHeight = 300.0, double? maxWidth, double offset = 4.0, double borderRadius = 8.0, double elevation = 8.0, Color? barrierColor, bool barrierDismissible = true, Duration animationDuration = const Duration(milliseconds: 200), OverlayAnimationType animationType = OverlayAnimationType.fade, Curve animationCurve = Curves.easeOutCubic, BoxConstraints? constraints, bool followTargetOnScroll = true})
-
const
Properties
- animationCurve → Curve
-
Animation curve for the transition.
final
- animationDuration → Duration
-
Duration of the show/hide animation.
final
- animationType → OverlayAnimationType
-
Type of animation for show/hide transitions.
final
- barrierColor → Color?
-
Color of the barrier behind the overlay. If null, no barrier is shown.
final
- barrierDismissible → bool
-
Whether tapping the barrier dismisses the overlay.
final
- borderRadius → double
-
Border radius of the overlay.
final
- constraints → BoxConstraints?
-
Additional constraints for the overlay.
final
- elevation → double
-
Elevation/shadow of the overlay.
final
- followTargetOnScroll → bool
-
Whether the overlay should follow the target widget when scrolling.
When true, the overlay position updates in real-time as the user scrolls.
Default is true for better UX with scrollable content.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxHeight → double
-
Maximum height of the overlay.
final
- maxWidth → double?
-
Maximum width of the overlay. If null, uses the search box width.
final
- offset → double
-
Gap between search box and overlay.
final
- position → OverlayPosition
-
Preferred position for the overlay.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{OverlayPosition? position, double? maxHeight, double? maxWidth, double? offset, double? borderRadius, double? elevation, Color? barrierColor, bool? barrierDismissible, Duration? animationDuration, OverlayAnimationType? animationType, Curve? animationCurve, BoxConstraints? constraints, bool? followTargetOnScroll}) → SmartSearchOverlayConfig -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited