This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="xxx"> | |
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> | |
<application | |
... | |
<service android:name=".FloatingAppService"/> |
This file contains 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:android_intent/android_intent.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:geolocator/geolocator.dart'; | |
import 'package:google_maps_flutter/google_maps_flutter.dart'; | |
import 'package:mccu_family/controllers/core/scoped.dart'; | |
import 'package:permission/permission.dart'; | |
import 'dart:async'; | |
import 'package:scoped_model/scoped_model.dart'; |
This file contains 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
exports.sendVideoCallNotification = functions.firestore | |
.document(`personalvideocalls/{recepientId}`) | |
.onCreate((snap, context) => { | |
console.log("----------------start function--------------------"); | |
const doc = snap.data(); | |
console.log(doc); | |
const idFrom = doc.senderuid; | |
const idTo = doc.receiveruid; |
This file contains 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
////////////////////////PLaced on click call nutton | |
generateChannelid<String>() { | |
return Random().nextInt(1000).toString(); | |
} | |
String channelid; | |
placeVideoCall() { | |
///place instance to callers db | |
Firestore.instance |
This file contains 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
/////////////////////////////////////////////////////////////////////EXTRACTED SHORT SNIPPETS Garage Idea from properties snippet //////////////////////////////// | |
//////////////////////////////////////////////MAPS SCREEN | |
////Suggests garages within a given radius from users loactions | |
List gdata = []; | |
List searchedGarage = []; | |
///In this block i receive my data from fireabse garage collections then regeneate a list containig my garage ,then i | |
//their ids within each garage's MAP ( |
This file contains 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
Future getVideo() async { | |
setState(() { | |
video = null; | |
thumbfilepath = null; | |
}); | |
setState(() { | |
messageid = DateTime.now().millisecondsSinceEpoch.toString(); | |
}); | |
var vinput = await ImagePicker.pickVideo(source: ImageSource.gallery); | |
final uint8list = await VideoThumbnail.thumbnailFile( |
This file contains 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
class VideoCallPerosnalScreen extends StatefulWidget { | |
/// non-modifiable channel name of the page | |
final String channelName; | |
final String callerid; | |
final String receiverid; | |
/// Creates a call page with given channel name. | |
const VideoCallPerosnalScreen( |
This file contains 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
Future<void> updateData(data) async { | |
print('function add data called'); | |
Firestore.instance | |
.collection('users') | |
.document(widget.uid) | |
.updateData(data) | |
.then((result) { | |
print("data added ..................................... "); | |
// print(result); | |
}).catchError((e) { |
This file contains 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
/* | |
Author : Eng.Muli Eric | |
Project : The Epistles Fellowhip Mobile App | |
Platform : Mobile Application | |
Technology : Flutter | |
Target : Android And IoS Os | |
Date : Mon May 27th 2019 22:34:30 | |
Page Title : Home Page | |
*/ |
This file contains 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 'dart:io'; | |
import 'package:cloud_firestore/cloud_firestore.dart'; | |
import 'package:country_code_picker/country_code_picker.dart'; | |
import 'package:device_info/device_info.dart'; | |
import 'package:firebase_messaging/firebase_messaging.dart'; | |
import 'package:firebase_storage/firebase_storage.dart'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_image_compress/flutter_image_compress.dart'; |
OlderNewer