This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -i -H 'Content-type: application/json' -H 'Authorization: key=<your_server_key>' -XPOST https://fcm.googleapis.com/fcm/send -d '{ | |
| "registration_ids":["registration_ids", "of the", "target", "devices as array"], | |
| "notification": { | |
| "title":"Title of your notification", | |
| "body":"content of your notification" | |
| }, | |
| "data": { | |
| "key1" : "value1", | |
| "key2" : "value2", | |
| "key3" : 23.56565, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # To run, download the script or copy the code to a '.sh' file (for example 'flutterrepair.sh') and run like any other script: | |
| # sh ./flutterrepair.sh | |
| # or | |
| # sudo sh flutterrepair.sh | |
| echo "Flutter Repair (by jeroen-meijer on GitHubGist)" | |
| echo Cleaning project... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| import 'package:vector_math/vector_math_64.dart' show radians; | |
| void main() => runApp(ExampleApp()); | |
| class ExampleItem { | |
| static const Pineapples = ExampleItem._('Pineapples'); | |
| static const Watermelons = ExampleItem._('Watermelons'); | |
| static const StarFruit = ExampleItem._('Star Fruit'); |
OlderNewer