Skip to content

Instantly share code, notes, and snippets.

View Syed-Waleed-Shah's full-sized avatar
🏠
Working from home

Syed-Waleed-Shah

🏠
Working from home
View GitHub Profile
@Syed-Waleed-Shah
Syed-Waleed-Shah / NOTIFICATION_SETUP_FLUTTER.md
Created April 25, 2022 09:33
All steps to Integrate FCM notifications in flutter

Integrate FCM notifications in flutter

1) Create a flutter app

Now all setup is done to work with Pushnotification

2) add these 3 Dependencies in pubspec.yaml

firebase_core: ^1.12.0
firebase_messaging: ^11.2.6
flutter_local_notifications: ^9.2.0
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
double height = MediaQuery.of(context).size.height;
double width = MediaQuery.of(context).size.height;
return SafeArea(
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
double height = MediaQuery.of(context).size.height;
double width = MediaQuery.of(context).size.height;
return SafeArea(
@Syed-Waleed-Shah
Syed-Waleed-Shah / Demo gist
Created May 16, 2021 03:30
This is the description of demo gist
from flask import Flask, render_template, request, send_from_directory, jsonify
from flask_restful import Resource, Api, reqparse, abort
import os
from flask.helpers import send_file
app = Flask(__name__)
api = Api(app)
@app.route('/', methods=["GET", "POST"])
def index():