【问题标题】:Flutter, Find location using Geolocator packageFlutter,使用 Geolocator 包查找位置
【发布时间】:2021-04-02 17:18:32
【问题描述】:

如何在 Flutter 应用中使用 Geolocator 包找到我的位置??

【问题讨论】:

    标签: flutter location


    【解决方案1】:
    import 'package:geolocator/geolocator.dart';
    
    Position position = await Geolocator.getLastKnownPosition();
    

    Documentation

    【讨论】:

      猜你喜欢
      • 2021-10-08
      • 2021-06-04
      • 1970-01-01
      • 2021-05-17
      • 2018-12-05
      • 2020-07-28
      • 2019-09-01
      • 2020-09-19
      • 2021-02-27
      相关资源
      最近更新 更多