Skip to content

Instantly share code, notes, and snippets.

View bhaskar-nair2's full-sized avatar
🏠
Working from home

Bhaskar Nair bhaskar-nair2

🏠
Working from home
View GitHub Profile
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:coup/firebase/auth.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_database/firebase_database.dart';
class UserPresence {
static final _app = FirebaseApp.instance;
static final FirebaseDatabase _db = FirebaseDatabase(
app: _app,
databaseURL: 'https://coup-dc26b.firebaseio.com/',
// Get File
const getFileBtn = document.getElementById("fs-get")
getFileBtn.onclick = async () => {
const [handle] = await window.showOpenFilePicker();
const file = await handle.getFile();
console.log(file)
}