Flutter code to send push notifications using Firebase Cloud Messaging easy way
add the http package to your project
dependencies:
flutter:
sdk: flutter
http:
get your FCM server key form the firebase project setting FCM section
replace the serverKey string in fcm_sender_service.dart
final String serverKey = "replace your api with this string";