From d60098711d38b5fd88738fc315836129fe08c4fd Mon Sep 17 00:00:00 2001 From: Prerak Mann Date: Wed, 22 Apr 2020 14:19:07 +0530 Subject: [PATCH] added contributing.md --- CONTRIBUTING.md | 12 ++++++++++++ example/lib/main.dart | 10 ++++------ lib/src/nearby.dart | 2 +- 3 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..0b2c1ab --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,12 @@ +## How to Contribute + +1. Fork this repo +2. Create your feature branch (`git checkout -b my-new-feature`) +3. Commit your changes (`git commit -am 'useful commit message'`) +4. Push to the branch (`git push origin my-new-feature`) +5. Start a Pull Request + +> You can help solve existing [issues](https://github.com/mannprerak2/nearby_connections/issues), in case you want something to be added, please create an issue first + +## Project Structure +The structure is pretty much self explainatory, please read the doc comments or see the [API Reference](https://pub.dev/documentation/nearby_connections/latest/) for more info. diff --git a/example/lib/main.dart b/example/lib/main.dart index 856f854..f26d2ce 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -102,13 +102,11 @@ class _MyBodyState extends State { child: Text("checkLocationEnabled"), onPressed: () async { if (await Nearby().checkLocationEnabled()) { - Scaffold.of(context).showSnackBar(SnackBar( - content: - Text("Location is ON :)"))); + Scaffold.of(context).showSnackBar( + SnackBar(content: Text("Location is ON :)"))); } else { - Scaffold.of(context).showSnackBar(SnackBar( - content: Text( - "Location is OFF :("))); + Scaffold.of(context).showSnackBar( + SnackBar(content: Text("Location is OFF :("))); } }, ), diff --git a/lib/src/nearby.dart b/lib/src/nearby.dart index 1daa2bb..6adf9e1 100644 --- a/lib/src/nearby.dart +++ b/lib/src/nearby.dart @@ -168,7 +168,7 @@ class Nearby { /// Convinience method /// /// Checks if Location/GPS is enabled - /// + /// /// If Location isn't enabled, devices may disconnect often. /// Some devices may immediately disconnect Future checkLocationEnabled() async =>