This file contains hidden or 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
'use strict'; | |
const admin = require('firebase-admin'); | |
const functions = require("firebase-functions"); | |
const nodemailer = require('nodemailer'); | |
admin.initializeApp(); | |
const db = admin.firestore(); |
This file contains hidden or 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
# First, we need to find our device. BEFORE inserting your USB drive, run the | |
# following: | |
diskutil list | |
# This will output a bunch of info about all of the disk drives connected to | |
# your Mac. Each entry will have a header in the form "/dev/diskX", where X is | |
# some number starting at 0. Now, insert your USB drive and run the command | |
# again. You should see a new entry. Make note of the name (ie, /dev/diskX). | |
diskutil list |
This file contains hidden or 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:email_validator/email_validator.dart'; | |
import 'package:firebase_dynamic_links/firebase_dynamic_links.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/material.dart' as material; | |
import 'package:intl/intl.dart'; | |
import 'package:rxdart/rxdart.dart'; | |
extension BuildContextExtensions on BuildContext { | |
dynamic get arguments => ModalRoute.of(this).settings.arguments; |
This file contains hidden or 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:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, |
This file contains hidden or 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
Container( | |
height: 144, | |
width: 144, | |
decoration: BoxDecoration( | |
color: Colors.red, | |
shape: BoxShape.circle, | |
), | |
); |
This file contains hidden or 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:ui'; | |
import 'package:flutter/material.dart'; | |
class FrostedContainer extends StatelessWidget { | |
final Color color; | |
final double blur; | |
final Widget child; | |
final double width; | |
final double height; | |
final double radius; |
This file contains hidden or 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:flutter/material.dart'; | |
import 'package:ursakta_mig/views/ticketsView.dart'; | |
class CustomAppBar extends StatelessWidget implements PreferredSizeWidget { | |
final double avatarSize = 24; | |
@override | |
Widget build(BuildContext _) { | |
return AppBar( | |
elevation: 0, |
This file contains hidden or 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.delayed(Duration(milliseconds: 2000)).then((a) => print(a)); |
This file contains hidden or 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:async'; | |
int handleData(int data) { | |
return data * 2; | |
} | |
void main() { | |
final controller = StreamController<int>(); | |
controller.stream |
OlderNewer