FMWidget class
Map with search field
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FMWidget
Constructors
- FMWidget({Key? key, Widget? marker, dynamic onError(Object, StackTrace)?, Widget? loadingView, FMData? initialValue, FMSearchOptions? searchOptions, TextStyle? attributionStyle, Widget? currentLocationFab, required dynamic onSelected(FMData), FMSelectButtonOptions? selectButtonOptions, TextFormField searchTextFieldBuilder(FocusNode focusNode, TextEditingController controller, void onChanged(String)?)?, FMSearchResultListOptions? searchResultListOptions, EdgeInsets searchFieldMargin = const EdgeInsets.all(20), Alignment attributionAlignment = Alignment.bottomLeft})
-
const
Properties
- attributionAlignment → Alignment
-
alignment of the attribution
final
- attributionStyle → TextStyle?
-
text style of attribution
final
- currentLocationFab → Widget?
-
Floating action button for getting current location
assign zero size SizedBox() to hidefinal - hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue → FMData?
-
initial selected coordinates (latitude, longitude)
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadingView → Widget?
-
map loading view
final
- marker → Widget?
-
marker icon
final
- onError → dynamic Function(Object, StackTrace)?
-
Error handler
Can be used to show custom dialog, snackbar, etc. when location is disabled, or permission denied, and other search error occured
Examplefinal - onSelected → dynamic Function(FMData)
-
callback function when a search result is selected
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchFieldMargin → EdgeInsets
-
margin around search field
final
- searchOptions → FMSearchOptions?
-
set options for searching
final
- searchResultListOptions → FMSearchResultListOptions?
-
set options for search results list
final
- searchTextFieldBuilder → TextFormField Function(FocusNode focusNode, TextEditingController controller, void onChanged(String)?)?
-
Create your fully customized text field.
Your text field must use focusNode, controller, and onChanged arguments from this method only.
Examplefinal - selectButtonOptions → FMSelectButtonOptions?
-
set options for final select button
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< FMWidget> -
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