backdrop_geo 0.0.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 44

backdrop_geo #

A new Flutter plugin.

Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

0.0.2 #

  • TODO: Describe initial release.


import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'location.dart';
import 'track.dart';
import 'settings.dart';
import 'package:backdrop_geo/backdrop_geo.dart';

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

class MyApp extends StatefulWidget {
  MyApp() {
    BackdropGeo.loggingEnabled = true;

  _MyAppState createState() => new _MyAppState();

class _MyAppState extends State<MyApp> {
  Widget build(BuildContext context) {
    return new MaterialApp(
        theme: ThemeData(
          // Define the default brightness and colors.
         // brightness: Brightness.dark,
          primaryColor: Color(0xff202942),
          accentColor: Color(0xff0069d9),
          fontFamily: 'Roboto',
          backgroundColor: Colors.grey,
          textTheme: TextTheme(
            headline: TextStyle(fontSize: 72.0, fontWeight: FontWeight.bold),
            title: TextStyle(fontSize: 36.0, fontStyle: FontStyle.italic),
            body1: TextStyle(fontSize: 14.0, fontFamily: 'Roboto'),
      home: new CupertinoTabScaffold(
        tabBar: new CupertinoTabBar(
          backgroundColor: Color(0xff202942),
        items: <BottomNavigationBarItem>[
            new BottomNavigationBarItem(
              title: new Text('Current',style: TextStyle(color: Colors.white,),),
             // backgroundColor: Colors.white,
              icon: new Icon(Icons.location_on,color: Color(0xff0069d9),),
            new BottomNavigationBarItem(
              title: new Text('Track',style: TextStyle(color: Colors.white,),),
              icon: new Icon(Icons.location_searching,color: Color(0xff0069d9),),
            new BottomNavigationBarItem(
              title: new Text('Background',style: TextStyle(color: Colors.white,),),
              icon: new Icon(Icons.location_off,color: Color(0xff0069d9),),
            new BottomNavigationBarItem(
              title: new Text('Settings',style: TextStyle(color: Colors.white,),),
              icon: new Icon(Icons.settings_input_antenna,color: Color(0xff0069d9),),
        tabBuilder: (BuildContext context, int index) {
          return new CupertinoTabView(
            builder: (BuildContext context) {
              switch (index) {
                case 0:
                  return new TabLocation();
                case 1:
                  return new TabTrack();
                case 3:
                  return new TabSettings();
                  return new Container(
                    color: Colors.white,
                    child: new Center(
                      child: new FlatButton(
                        color: Color(0xff202942),
                        child: Text(
                          "Enable Location",
                          style: TextStyle(color: Colors.white),
                        onPressed: enableLocationServices,

  enableLocationServices() async {
    BackdropGeo.enableLocationServices().then((result) {
      // Request location
    }).catchError((e) {
      // Location Services Enablind Cancelled

Use this package as a library

1. Depend on it

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

  backdrop_geo: ^0.0.2

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:backdrop_geo/backdrop_geo.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 May 26, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.1
  • pana: 0.13.8-dev
  • Flutter: 1.17.0

Health suggestions

Format lib/_android/location.dart.

Run flutter format to format lib/_android/location.dart.

Format lib/_android/request.dart.

Run flutter format to format lib/_android/request.dart.

Format lib/_android/result.dart.

Run flutter format to format lib/_android/result.dart.

Fix additional 8 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/_ios/location.dart (Run flutter format to format lib/_ios/location.dart.)
  • lib/_ios/permission.dart (Run flutter format to format lib/_ios/permission.dart.)
  • lib/backdrop_geo.dart (Run flutter format to format lib/backdrop_geo.dart.)
  • lib/channel/backdecodec.dart (Run flutter format to format lib/channel/backdecodec.dart.)
  • lib/channel/bdhandle.dart (Run flutter format to format lib/channel/bdhandle.dart.)
  • lib/channel/location_channel.dart (Run flutter format to format lib/channel/location_channel.dart.)
  • lib/data/location_output.dart (Run flutter format to format lib/data/location_output.dart.)
  • lib/data/result.dart (Run flutter format to format lib/data/result.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
Transitive dependencies
collection 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies