EnhancedGooglePlacesWidget class
Enhanced Google Places widget with comprehensive customization options Provides maximum flexibility for styling and behavior customization
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- EnhancedGooglePlacesWidget
Constructors
-
EnhancedGooglePlacesWidget.new({Key? key, dynamic onLocationSelected(LocationResult?)?, dynamic onTextChanged(String)?, dynamic onSuggestionsChanged(List<
PlacePrediction> )?, String? apiKey, String? initialValue, String? country, List<String> types = const [], bool enabled = true, TextEditingController? controller, InputDecoration? inputDecoration, TextStyle? textStyle, TextStyle? hintStyle, String? hintText = 'Search for a place...', Widget? prefixIcon, Widget? suffixIcon, Widget? loadingWidget, Widget? clearIcon, EdgeInsetsGeometry? contentPadding, BorderRadius? borderRadius, Border? border, Border? focusedBorder, Border? errorBorder, Color? fillColor, bool? filled, double? borderWidth, Color? borderColor, Color? focusedBorderColor, Color? errorBorderColor, double? suggestionHeight, double? maxSuggestionHeight = 300, BorderRadius? suggestionBorderRadius, Color? suggestionBackgroundColor, Color? suggestionHoverColor, Color? suggestionSelectedColor, double? suggestionElevation = 4, EdgeInsetsGeometry? suggestionPadding, TextStyle? suggestionTextStyle, TextStyle? suggestionSubtextStyle, Widget customSuggestionBuilder(PlacePrediction)?, Widget? noResultsWidget, Widget? errorWidget, Offset? suggestionOffset, double? suggestionSpacing = 4, Widget? locationIcon, double? iconSize = 20, Color? iconColor, EdgeInsetsGeometry? iconPadding, Duration? debounceDelay = const Duration(milliseconds: 300), Duration? animationDuration = const Duration(milliseconds: 200), Curve? animationCurve = Curves.easeInOut, bool showAnimations = true, bool autoFocus = false, bool showClearButton = true, bool showLoadingIndicator = true, double? width, double? height, EdgeInsetsGeometry? margin, AlignmentGeometry? alignment, String? validator(String?)?, Widget errorBuilder(String)?, bool showInlineErrors = true, String? semanticsLabel, String? semanticsHint}) -
const
Properties
- alignment → AlignmentGeometry?
-
final
- animationCurve → Curve?
-
final
- animationDuration → Duration?
-
final
- apiKey → String?
-
final
- autoFocus → bool
-
final
- border → Border?
-
final
- borderColor → Color?
-
final
- borderRadius → BorderRadius?
-
final
- borderWidth → double?
-
final
- clearIcon → Widget?
-
final
- contentPadding → EdgeInsetsGeometry?
-
final
- controller → TextEditingController?
-
final
- country → String?
-
final
- customSuggestionBuilder → Widget Function(PlacePrediction)?
-
final
- debounceDelay → Duration?
-
final
- enabled → bool
-
final
- errorBorder → Border?
-
final
- errorBorderColor → Color?
-
final
- errorBuilder → Widget Function(String)?
-
final
- errorWidget → Widget?
-
final
- fillColor → Color?
-
final
- filled → bool?
-
final
- focusedBorder → Border?
-
final
- focusedBorderColor → Color?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
final
- hintStyle → TextStyle?
-
final
- hintText → String?
-
final
- iconColor → Color?
-
final
- iconPadding → EdgeInsetsGeometry?
-
final
- iconSize → double?
-
final
- initialValue → String?
-
final
- inputDecoration → InputDecoration?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadingWidget → Widget?
-
final
- locationIcon → Widget?
-
final
- margin → EdgeInsetsGeometry?
-
final
- maxSuggestionHeight → double?
-
final
- noResultsWidget → Widget?
-
final
- onLocationSelected → dynamic Function(LocationResult?)?
-
final
-
onSuggestionsChanged
→ dynamic Function(List<
PlacePrediction> )? -
final
- onTextChanged → dynamic Function(String)?
-
final
- prefixIcon → Widget?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticsHint → String?
-
final
- semanticsLabel → String?
-
final
- showAnimations → bool
-
final
- showClearButton → bool
-
final
- showInlineErrors → bool
-
final
- showLoadingIndicator → bool
-
final
- suffixIcon → Widget?
-
final
- suggestionBackgroundColor → Color?
-
final
- suggestionBorderRadius → BorderRadius?
-
final
- suggestionElevation → double?
-
final
- suggestionHeight → double?
-
final
- suggestionHoverColor → Color?
-
final
- suggestionOffset → Offset?
-
final
- suggestionPadding → EdgeInsetsGeometry?
-
final
- suggestionSelectedColor → Color?
-
final
- suggestionSpacing → double?
-
final
- suggestionSubtextStyle → TextStyle?
-
final
- suggestionTextStyle → TextStyle?
-
final
- textStyle → TextStyle?
-
final
-
types
→ List<
String> -
final
- validator → String? Function(String?)?
-
final
- width → double?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< EnhancedGooglePlacesWidget> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited