Fermé

flutter, working with Location package

I need to get Longitude and Latitude, using the Location package. The code below works but I need to wrap the values and add them to a second page as values. My guess as String...

Here is the version I am using: [login to view URL]

For instance, on [login to view URL]

class _AddPageState extends State<AddPage> {

var latitude = '34.32444'; replace this with _latitude

var longitude = '-134.44332'; replace this with _longitude

The values go inside the  these two ( ' ' ) 

Future<void> _submit() async { ...etc...

final userinfo = UserInfo(

latitude: _latitude;

longitude: _longitude;

) .... etc.

}

This is the code, it has to be dynamic and async, because after the user opens the screen it will automatically generate the location of the person.  I have a form to submit those coordinates. You don't need to create a form. I just need the values like above.

Finally, the permissions need to be added to the code. The one I have there is not complete.

[login to view URL]

class _MyHomePageState extends State<MyHomePage> {

var currentLocation = LocationData;

var location = new Location();

Positioned userLocation;

@override

void initState() {

[login to view URL]();

_getLocation().then((position) {

userLocation = position;

print('this is: ${userLocation}'); //null

});

}

Future<dynamic> _getLocation() async {

var location = new Location();

var row;

try {

row = await [login to view URL]().then((onValue) {

print([login to view URL]() + "," + [login to view URL]());

});

return row;

} catch (e) {

print(e);

if ([login to view URL] == 'PERMISSION_DENIED') {

print('permission denied');

}

}

}

}

this project should take less than one hour. But I'm going to give two hours. The cost will be $30 per hrs.

Compétences : Flutter, Dart

en voir plus : would like to find information on an artist named constance coote, The Rise of Remote Working & Location Independent Entrepreneur, how do you like someone's comment on facebook, who can like my public posts on facebook, i would like to follow up on the status of my request, how to set up a like and share competition on facebook, it's like putting a bandaid on a bullet hole, i can like but not comment on facebook, how to like a text message on android, like and share promotion on facebook, how to like a text message on iphone, like eyes that looked on wastes, package deployment mode is not supported on server with version lower than sql server 2016, how to like a direct message on instagram, how do you like a direct message on instagram, on centos what additional package is needed to implement ssl on an apache web server, if you like and then unlike on facebook 2017, this website looks like it's hosted on a compromised server, how to do a like and share contest on facebook, flutter module vs package

Concernant l'employeur :
( 0 commentaires ) Seattle, United States

Nº du projet : #22027754

12 freelance font une offre moyenne de $68 pour ce travail

unix515

Hello, sir. How are you? I am flutter expert. I can do it for 2 hours perfectly. Thanks Joe.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(3 Commentaires)
3.7
Mohamed19890213

Greeting, sir! ============================================== I have just read your description and more interested in your job. I am a senior mobile developer with flutter, react-native. Your project requires skills t Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(1 Évaluation)
1.8
pluralcode16

I am glad to bid for your project. I have experience in Mobile app development using technologies like Flutter(v1.2.1), Dart(v2.2.3), Kotlin, Swift & Agile software development. Recently I have completed a mobile ap Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(1 Évaluation)
1.6
adamccc

Location, location, location! My name is Adam and I am an experienced developer based in Melbourne Australia I have had a look at your proposal and am interested in taking up the work! I understand you need help with Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(1 Évaluation)
0.4
ctujare

Hello ... I have been working with Flutter for a while now and would love to help you out with the issue you are facing currently... do let me know if i may... thank you and regards...

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
Ramandeep330

Hello I am highly interested to solve the problem in the given task.I recently work on location in flutter Relevant Skills and Experience I have experience in android app development and currently I work on flutter de Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
dribina

Hello. I am flutter developer experienced in location package. I can fix your problem perfectly. Thanks.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
TrueGardener

Hello, Victor. Thank you for your invitation. I am the senior Flutter/Dart developer who can solve your problem with Location package. I can give it a shot if you contact me. Looking forward to working for you Thank y Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
dulajnadawa

We are a well-talented team in the mobile app development filed. Also, We have 4+ years of experience. We can build your app according to your ideas. Moreover, We can do this task quick and more professional than other Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(0 Commentaires)
0.0
KOKTech

⭐ Hello, Sir! ⭐ :) I have just read your project proposal carefully, it is very interesting for me. I am a full-stack mobile app developer with 7+ years for example estate management app, dating app and healthcare app Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(0 Commentaires)
0.0
srekinbabu

I have 1 year experience on flutter and complete 3 project

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
Beauty1409

Hello, I have rich experiences in Flutter app development. I have developed several design, content management and social apps. I'd like to discuss more details. Please contact me. Thanks

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(0 Commentaires)
0.0