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( | |
| home: Scaffold( | |
| appBar: AppBar(title: const Text('Layout Builder Example')), |
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:math'; | |
| void main() { | |
| final total = 30; | |
| final max = 100; | |
| final from = 0; | |
| List<int> items = []; | |
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
| const functions = require("firebase-functions"); | |
| const admin = require("firebase-admin"); | |
| admin.initializeApp(); | |
| const db = admin.firestore(); | |
| const FieldValue = admin.firestore.FieldValue; | |
| exports.updateScores = functions.firestore | |
| .document("users/{userId}") | |
| .onUpdate((change, context) => { | |
| const newValue = change.after.data(); |
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
| { | |
| "AED": "د.إ", | |
| "AFN": "؋", | |
| "ALL": "L", | |
| "AMD": "֏", | |
| "ANG": "ƒ", | |
| "AOA": "Kz", | |
| "ARS": "$", | |
| "AUD": "A$", | |
| "AWG": "ƒ", |