fm_baidu_map 0.0.7

  • Readme
  • Changelog
  • Example
  • Installing
  • 68

fm_baidu_map #


百度地图 iOS & android #

功能包含百度地图绘制及事件监听功能 #

地图组件类 #

final FmBaiduMap _map = FmBaiduMap();

定位组件类 #

final FmBaiduLocation _location = FmBaiduLocation();


0.0.7 #

ios/android bugs

0.0.6 #

android sdk

0.0.5 #

ios support

0.0.4 #

modify event

0.0.3 #

add example

0.0.2 #

add types

0.0.1 #


  • TODO: Describe initial release.


import 'package:flutter/material.dart';
import './page.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    return new MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Demo',
      theme: new ThemeData(
      home: Home(),

class Home extends StatefulWidget {
  _HomeState createState() => _HomeState();

class _HomeState extends State<Home> {
  void initState() {

  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('百度地图测试'),
        centerTitle: true,
      body: Center(
          child: Column(
        children: <Widget>[
            child: Text("进入"),
            onPressed: () {
                new MaterialPageRoute(builder: (context) => PageTest()),

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  fm_baidu_map: ^0.0.7

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:fm_baidu_map/fm_baidu_map.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 8, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6
  • Flutter: 1.12.13+hotfix.8

Health issues and suggestions

Document public APIs. (-0.42 points)

200 out of 204 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/over_types/base.dart. (-1 points)

Analysis of lib/over_types/base.dart reported 2 hints:

line 6 col 7: Avoid wrapping fields in getters and setters just to be "safe".

line 22 col 18: Avoid wrapping fields in getters and setters just to be "safe".

Fix lib/location.dart. (-0.50 points)

Analysis of lib/location.dart reported 1 hint:

line 25 col 30: This function has a return type of 'Future', but doesn't end with a return statement.

Fix lib/map.dart. (-0.50 points)

Analysis of lib/map.dart reported 1 hint:

line 62 col 30: This function has a return type of 'Future', but doesn't end with a return statement.

Format lib/fm_baidu_map.dart.

Run flutter format to format lib/fm_baidu_map.dart.

Maintenance suggestions

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
uuid ^2.0.1 2.0.4
Transitive dependencies
charcode 1.1.3
collection 1.14.11 1.14.12
convert 2.1.1
crypto 2.1.4
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies