|
1 |
| -<!-- |
2 |
| -This README describes the package. If you publish this package to pub.dev, |
3 |
| -this README's contents appear on the landing page for your package. |
| 1 | +# platform_maps_flutter_platform_interface |
4 | 2 |
|
5 |
| -For information about how to write a good package README, see the guide for |
6 |
| -[writing package pages](https://dart.dev/guides/libraries/writing-package-pages). |
| 3 | +A common platform interface for the `platform_maps_flutter` plugin. |
7 | 4 |
|
8 |
| -For general information about developing packages, see the Dart guide for |
9 |
| -[creating packages](https://dart.dev/guides/libraries/create-library-packages) |
10 |
| -and the Flutter guide for |
11 |
| -[developing packages and plugins](https://flutter.dev/developing-packages). |
12 |
| ---> |
| 5 | +This interface allows platform-specific implementations of the `platform_maps_flutter` |
| 6 | +plugin, as well as the plugin itself, to ensure they are supporting the |
| 7 | +same interface. |
13 | 8 |
|
14 |
| -TODO: Put a short description of the package here that helps potential users |
15 |
| -know whether this package might be useful for them. |
| 9 | +# Usage |
16 | 10 |
|
17 |
| -## Features |
| 11 | +To implement a new platform-specific implementation of `platform_maps_flutter`, extend |
| 12 | +`PlatformMapsPlatform` with an implementation that performs the |
| 13 | +platform-specific behavior, and when you register your plugin, set the default |
| 14 | +`PlatformMapsPlatform` by calling |
| 15 | +`PlatformMapsPlatform.instance = MyCustomPlatformMapsPlatform()`. |
18 | 16 |
|
19 |
| -TODO: List what your package can do. Maybe include images, gifs, or videos. |
| 17 | +# Note on breaking changes |
20 | 18 |
|
21 |
| -## Getting started |
| 19 | +Strongly prefer non-breaking changes (such as adding a method to the interface) |
| 20 | +over breaking changes for this package. |
22 | 21 |
|
23 |
| -TODO: List prerequisites and provide or point to information on how to |
24 |
| -start using the package. |
25 |
| - |
26 |
| -## Usage |
27 |
| - |
28 |
| -TODO: Include short and useful examples for package users. Add longer examples |
29 |
| -to `/example` folder. |
30 |
| - |
31 |
| -```dart |
32 |
| -const like = 'sample'; |
33 |
| -``` |
34 |
| - |
35 |
| -## Additional information |
36 |
| - |
37 |
| -TODO: Tell users more about the package: where to find more information, how to |
38 |
| -contribute to the package, how to file issues, what response they can expect |
39 |
| -from the package authors, and more. |
| 22 | +See https://flutter.dev/go/platform-interface-breaking-changes for a discussion |
| 23 | +on why a less-clean interface is preferable to a breaking change. |
0 commit comments