Skip to content

Instantly share code, notes, and snippets.

View Monik09's full-sized avatar

Monikinderjit Singh Monik09

  • Indian Institute of Information Technology Vadodara
  • X @MonikIJS
View GitHub Profile
@Monik09
Monik09 / script.ipynb
Created April 15, 2021 05:39
Script to extract data from spreadsheet and uploading it into firestore
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Monik09
Monik09 / notifications.dart
Created August 24, 2021 13:09
Handling Amazon Pinpoint messages using FCM
import 'dart:developer';
import 'dart:io';
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_messaging/firebase_messaging.dart';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
import 'package:http/http.dart' as http;
import 'package:path_provider/path_provider.dart';
import 'package:amplify_analytics_pinpoint/amplify_analytics_pinpoint.dart';
import 'package:amplify_auth_cognito/amplify_auth_cognito.dart';
import 'package:amplify_flutter/amplify.dart';
void _configureAmplify() async {
if (!mounted) return;
AmplifyAuthCognito authPlugin = AmplifyAuthCognito();
AmplifyAnalyticsPinpoint analyticsPlugin = AmplifyAnalyticsPinpoint();
Amplify.addPlugins([authPlugin, analyticsPlugin]);
import 'package:flutter/material.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_messaging/firebase_messaging.dart';
import '../notification_handler.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
Property Description
child Child is the widget which comes under this widget
onHover Its called when a mouse pointer enters or exits the ink response area.
onTap When the widget is clicked, onTap is triggered.
onLongPress When the user presses the widget for more than 500 milliseconds, this function is called.
hoverColor It is called when a pointer enters or exits the ink response area.
splashColor The splash color of the ink response.
radius The radius of th
Property Description
child Child is the widget which comes under this widget
duration It is used to tell for how much duration the child should be animated
curve The animated curve to be applied.
decoration Decoration behind the child.
foregroundDecoration Decoration in front of the child.
onEnd Called after animation ends.
transform The transformation matrix to apply before painting the container.
import 'dart:convert';
import 'dart:developer';
import 'package:amazon_cognito_identity_dart_2/sig_v4.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'package:sigv4/sigv4.dart';
class BotService {
Map<String,dynamic> result;