mirror of
https://github.com/hackku21/nearby_connections.git
synced 2024-10-27 19:14:01 +00:00
added contributing.md
This commit is contained in:
parent
4ce3f0272a
commit
d60098711d
12
CONTRIBUTING.md
Normal file
12
CONTRIBUTING.md
Normal file
@ -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.
|
@ -102,13 +102,11 @@ class _MyBodyState extends State<Body> {
|
||||
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 :(")));
|
||||
}
|
||||
},
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user