permission 0.0.9

  • Example
  • Installing
  • Versions
  • new84


A new Flutter plugin.

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.


  • TODO: Describe initial release.


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

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

class MyApp extends StatefulWidget {
  _MyAppState createState() => new _MyAppState();

class _MyAppState extends State<MyApp> {
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Plugin example app'),
        body: Center(
          child: new Column(
            children: <Widget>[
              RaisedButton(onPressed: getPermissionStatus, child: new Text("Get permission status")),
              RaisedButton(onPressed: requestPermissions, child: new Text("Request permissions")),
              RaisedButton(onPressed: requestPermission, child: new Text("Request single permission")),
              RaisedButton(onPressed: Permission.openSettings, child: new Text("Open settings")),

  getPermissionStatus() async {
    var res = await Permission.getPermissionStatus([PermissionName.Camera, PermissionName.AccessFineLocation]);

  requestPermissions() async {
    final res = await Permission.requestPermissions([PermissionName.Camera, PermissionName.AccessFineLocation]);
    res.forEach((permission) {});

  requestPermission() async {
    final res = await Permission.requestSinglePermission(PermissionName.Camera);

Use this package as a library

1. Depend on it

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

  permission: ^0.0.9

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:

import 'package:permission/permission.dart';
Version Uploaded Documentation Archive
0.0.9 Aug 15, 2018 Go to the documentation of permission 0.0.9 Download permission 0.0.9 archive
0.0.8 Aug 2, 2018 Go to the documentation of permission 0.0.8 Download permission 0.0.8 archive
0.0.7 Aug 1, 2018 Go to the documentation of permission 0.0.7 Download permission 0.0.7 archive
0.0.6 Aug 1, 2018 Go to the documentation of permission 0.0.6 Download permission 0.0.6 archive
0.0.5 Aug 1, 2018 Go to the documentation of permission 0.0.5 Download permission 0.0.5 archive
0.0.4 Aug 1, 2018 Go to the documentation of permission 0.0.4 Download permission 0.0.4 archive
0.0.3 Aug 1, 2018 Go to the documentation of permission 0.0.3 Download permission 0.0.3 archive
0.0.2 Aug 1, 2018 Go to the documentation of permission 0.0.2 Download permission 0.0.2 archive
0.0.1 Aug 1, 2018 Go to the documentation of permission 0.0.1 Download permission 0.0.1 archive
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 Aug 15, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.11.8
  • Flutter: 0.5.7


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.


The description is too short.

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Package is pre-v1 release.

While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction of the API.

Format lib/permission.dart.

Run flutter format to format lib/permission.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.28.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.6 1.14.11
meta 1.1.5 1.1.6
sky_engine 0.0.99
typed_data 1.1.5 1.1.6
vector_math 2.0.6 2.0.8