Skip to content

Instantly share code, notes, and snippets.

Avatar

Monikinderjit Singh Monik09

  • Indian Institute of Information Technology Vadodara
  • Twitter @MonikIJS
View GitHub Profile
View imp_animatedContainer_properties.md
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.
View imp_inkwell_properties.md
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
View main.dart
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();
View config_amplify.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]);
@Monik09
Monik09 / notifications.dart
Created Aug 24, 2021
Handling Amazon Pinpoint messages using FCM
View notifications.dart
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';
View bot_service.dart
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;
@Monik09
Monik09 / script.ipynb
Created Apr 15, 2021
Script to extract data from spreadsheet and uploading it into firestore
View script.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.