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
| name: fbauth | |
| description: A new Flutter project. | |
| version: 1.0.0+1 | |
| environment: | |
| sdk: ">=2.1.0 <3.0.0" | |
| dependencies: | |
| flutter: | |
| sdk: flutter | |
| cupertino_icons: ^0.1.2 | |
| firebase_auth: ^0.16.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
| name: HiveDemo | |
| description: A Hive Demo Project. | |
| version: 1.0.0+1 | |
| environment: | |
| sdk: ">=2.1.0 <3.0.0" | |
| dependencies: | |
| flutter: | |
| sdk: flutter |
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:hive/hive.dart'; | |
| import 'package:path_provider/path_provider.dart'; | |
| import 'package:todo/models/Contact.dart'; | |
| import 'package:todo/views/HiveDemo.dart'; | |
| void main() async { | |
| WidgetsFlutterBinding.ensureInitialized(); | |
| final appDocumentDirectory = await getApplicationDocumentsDirectory(); | |
| Hive.init(appDocumentDirectory.path); |
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:hive/hive.dart'; | |
| part 'Contact.g.dart'; | |
| @HiveType() | |
| class Contact { | |
| @HiveField(0) | |
| final String name; | |
| @HiveField(1) | |
| final String email; |
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:hive/hive.dart'; | |
| import 'package:hive_flutter/hive_flutter.dart'; | |
| class HiveDemo extends StatelessWidget { | |
| final TextEditingController controller = TextEditingController(); | |
| final _nameBox = Hive.box("name"); | |
| _saveNameAt(id) async { | |
| await _nameBox.put(id, controller.text); |
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:hive/hive.dart'; | |
| import 'package:path_provider/path_provider.dart'; | |
| import 'package:todo/views/HiveDemo.dart'; | |
| void main() async { | |
| WidgetsFlutterBinding.ensureInitialized(); | |
| final appDocumentDirectory = await getApplicationDocumentsDirectory(); | |
| Hive.init(appDocumentDirectory.path); | |
| await Hive.registerAdapter(ContactAdapter()); |
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
| var express = require("express"); | |
| var app = express(); | |
| app.get("/", (req, res) => { | |
| res.send("Prod API"); | |
| }); | |
| module.exports = app; |
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'); | |
| exports.hi = functions.https.onRequest((request, response) => { | |
| response.send("Howzit!"); | |
| }); |
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'); | |
| exports.hi = functions.https.onRequest((request, response) => { | |
| response.send("Howzit!"); | |
| }); |
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
| { | |
| "swagger": "2.0", | |
| "info": { | |
| "title": "AAG API", | |
| "version": "1.0.0" | |
| }, | |
| "basePath": "/", | |
| "host": "k0e8cq3bgi.execute-api.eu-west-2.amazonaws.com/dev", | |
| "schemes": ["https"], | |
| "consumes": ["application/json"], |