Commit 29489af5 by Jeroen Weener Committed by GitHub

Modernize web package and rename to `permission_handler_html` (#1226)

* Rename to `permission_handler_html`

* Change description example `pubspec.yaml`
parent fb48124d
# permission_handler_web # permission_handler_html
[![pub package](https://img.shields.io/pub/v/permission_handler_web.svg)](https://pub.dartlang.org/packages/permission_handler_web) ![Build status](https://github.com/Baseflow/flutter-permission-handler/workflows/permission_handler_web/badge.svg?branch=master) [![style: flutter lints](https://img.shields.io/badge/style-flutter_lints-40c4ff.svg)](https://pub.dev/packages/flutter_lints) [![pub package](https://img.shields.io/pub/v/permission_handler_html.svg)](https://pub.dartlang.org/packages/permission_handler_html) ![Build status](https://github.com/Baseflow/flutter-permission-handler/workflows/permission_handler_html/badge.svg?branch=master) [![style: flutter lints](https://img.shields.io/badge/style-flutter_lints-40c4ff.svg)](https://pub.dev/packages/flutter_lints)
The official web implementation of the [permission_handler](https://pub.dev/packages/permission_handler) plugin by [Baseflow](https://baseflow.com). The official web implementation of the [permission_handler](https://pub.dev/packages/permission_handler) plugin by [Baseflow](https://baseflow.com).
......
name: permission_handler_html_example
description: Demonstrates how to use the permission_handler_html plugin.
environment:
sdk: ">=3.0.5 <4.0.0"
dependencies:
baseflow_plugin_template: ^2.1.2
flutter:
sdk: flutter
dev_dependencies:
integration_test:
sdk: flutter
flutter_test:
sdk: flutter
permission_handler_html:
# When depending on this package from a real application you should use:
# permission_handler_web: ^x.y.z
# See https://dart.dev/tools/pub/dependencies#version-constraints
# The example app is bundled with the plugin so we use a path dependency on
# the parent directory to use the current plugin's version.
path: ../
url_launcher: ^6.0.12
flutter:
uses-material-design: true
...@@ -4,7 +4,8 @@ import 'dart:async'; ...@@ -4,7 +4,8 @@ import 'dart:async';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart'; import 'package:flutter_web_plugins/flutter_web_plugins.dart';
import 'package:permission_handler_platform_interface/permission_handler_platform_interface.dart'; import 'package:permission_handler_platform_interface/permission_handler_platform_interface.dart';
import 'package:permission_handler_web/web_delegate.dart';
import 'web_delegate.dart';
/// Platform implementation of the permission_handler Flutter plugin. /// Platform implementation of the permission_handler Flutter plugin.
class WebPermissionHandler extends PermissionHandlerPlatform { class WebPermissionHandler extends PermissionHandlerPlatform {
......
name: permission_handler_web name: permission_handler_html
description: A new Flutter package project. description: Permission plugin for Flutter. This plugin provides the web API to request and check permissions.
version: 0.0.1 version: 0.1.0
homepage: homepage: https://github.com/baseflow/flutter-permission-handler
environment: environment:
sdk: ">=3.0.5 <4.0.0" sdk: ">=3.0.5 <4.0.0"
...@@ -22,14 +22,10 @@ dev_dependencies: ...@@ -22,14 +22,10 @@ dev_dependencies:
build_runner: ^2.1.2 build_runner: ^2.1.2
test: ^1.24.4 test: ^1.24.4
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter packages.
flutter: flutter:
plugin: plugin:
implements: permission_handler implements: permission_handler
platforms: platforms:
web: web:
pluginClass: WebPermissionHandler pluginClass: WebPermissionHandler
fileName: permission_handler_web.dart fileName: permission_handler_html.dart
name: permission_handler_web_example
description: Demonstrates how to use the permission_handler_web plugin..
environment:
sdk: ">=3.0.5 <4.0.0"
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
baseflow_plugin_template: ^2.1.2
flutter:
sdk: flutter
meta: ^1.3.0
permission_handler_platform_interface: any
dev_dependencies:
integration_test:
sdk: flutter
flutter_test:
sdk: flutter
permission_handler_web:
# When depending on this package from a real application you should use:
# permission_handler_web: ^x.y.z
# See https://dart.dev/tools/pub/dependencies#version-constraints
# The example app is bundled with the plugin so we use a path dependency on
# the parent directory to use the current plugin's version.
path: ../
url_launcher: ^6.0.12
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter packages.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
assets:
- res/images/baseflow_logo_def_light-02.png
- res/images/poweredByBaseflowLogoLight@3x.png
- res/images/logo.png
- res/images/poweredByBaseflow.png
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment