๐
Hi there ๐ญ Iโm currently working as Flutter Developer and Backend Developer.๐ฑ Iโm currently learning Serverless Framework๐ฏ Iโm looking to collaborate on Flutter Open-Source project!๐ ๐ฌ Ask me about Flutter๐
MapBox Search Widget
License: MIT License
in file map_box_place_search_widget.dart line 170 it calls setState(() => _autocompletePlace(value));
_autocompletePlace is a async function so it complains during runtime that a Future is returned during setState.
Is this plugin (mapbox_search_flutter) dependent on the other plugin (mapbox_search) or it is enough in terms of getting search datas and its geocoords for map placement
Parameter fontSize of MapBoxPlaceSearchWidget is a String but is used in a context where a double is expected.
This causes a crash of the widget if the parameter is used:
type 'String' is not a subtype of type 'double?'
When the exception was thrown, this was the stack:
#0 _MapBoxPlaceSearchWidgetState._searchInput (package:mapbox_search_flutter/src/map_box_place_search_widget.dart:160:37)
#1 _MapBoxPlaceSearchWidgetState.build (package:mapbox_search_flutter/src/map_box_place_search_widget.dart:110:18)
#2 StatefulElement.build (package:flutter/src/widgets/framework.dart:4792:27)
#3 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:15)
#4 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4847:11)
...
Hey, there is a issue with canceling rebuiliding.
โโโโโโโโ Exception caught by widgets library โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The following NoSuchMethodError was thrown while finalizing the widget tree:
The method 'cancel' was called on null.
Receiver: null
Tried calling: cancel()
When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1 _MapBoxPlaceSearchWidgetState.dispose (package:mapbox_search_flutter/src/map_box_place_search_widget.dart:106:20)
#2 StatefulElement.unmount (package:flutter/src/widgets/framework.dart:4733:12)
#3 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1922:13)
#4 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1920:7)
...
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The font size in this widget is dependent on the screen width as we can see in the following code. This cause the font to grow so large that its heigth overflows the edit text on web browsers.
Here is the code cause the problem:
`child: TextField(
decoration: _inputStyle(),
controller: _textEditingController,
style: TextStyle(
fontSize: MediaQuery.of(context).size.width * 0.04,
),`
Maybe set a maximum fontsize, or do not overwrite the Theme fontsize.
I am running example code , but I can not find MapBoxStaticImage Widget.
How can I change the field style? (Height & color)
and How to change the search icon?
any plans for support of null-safety, please?
The height property seems to be non responsive and displays the search box at a same height irrespective of the input value.
_MapBoxPlaceSearchWidgetState created a Ticker via its SingleTickerProviderStateMixin, but at the time dispose() was called on the mixin, that Ticker was still active. The Ticker must be disposed before calling super.dispose().
Tickers used by AnimationControllers should be disposed by calling dispose() on the AnimationController itself. Otherwise, the ticker will leak.
Hey, I found an issue which exist when I'm opening a separate window with search_bar, don't search for anything and close the page with Navigator.pop(context);
โโโโโโโโ Exception caught by widgets library โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The following NoSuchMethodError was thrown while finalizing the widget tree:
The method 'cancel' was called on null.
Receiver: null
Tried calling: cancel()
When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 _MapBoxPlaceSearchWidgetState.dispose (package:mapbox_search_flutter/src/map_box_place_search_widget.dart:106:20)
#2 StatefulElement.unmount (package:flutter/src/widgets/framework.dart:4738:12)
#3 _InactiveElements._unmount (package:flutter/src/widgets/framework.dart:1927:13)
#4 _InactiveElements._unmount.<anonymous closure> (package:flutter/src/widgets/framework.dart:1925:7)
...
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Hello, I'm encuntering issues when trying your library
In your example : https://pub.dev/packages/mapbox_search_flutter/example
Error: The getter 'country' isn't defined for the class 'MapBoxPlaceSearchWidget'.
Error: The getter 'location' isn't defined for the class 'MapBoxPlaceSearchWidget'.
I've imported both libraries
mapbox_search_flutter: ^1.0.6
mapbox_search: ^2.0.1+1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.