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 HttpStatus from 'http-status' | |
| import * as requestUtils from '../infra/utils/requestUtils' | |
| import * as LoginInputDto from './dto/input/LoginInputDto' | |
| import * as tokenManager from '../infra/tokenManager' | |
| export class LoginController { | |
| constructor(usersService) { | |
| this.usersService = usersService | |
| } |
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:bytebank/main.dart'; | |
| import 'package:bytebank/screens/contact/list.dart'; | |
| import 'package:bytebank/screens/transactions/list.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:provider/provider.dart'; | |
| class Dashboard extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( |
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:bytebank/database/dao/contact_dao.dart'; | |
| import 'package:bytebank/models/contact.dart'; | |
| import 'package:bytebank/screens/contact/form.dart'; | |
| import 'package:flutter/material.dart'; | |
| class ContactsList extends StatefulWidget { | |
| @override | |
| _ContactsListState createState() => _ContactsListState(); | |
| } |
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:bytebank/models/contact.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:path/path.dart'; | |
| import 'package:sqflite/sqflite.dart'; | |
| // Estamos no 10.5 EXERCÍCIO: REFATORANDO PARA ASYNC AWAIT | |
| // 1 - Converter getDatabase para async | |
| Future<Database> getDatabase() async { | |
| final String dbPath = await getDatabasesPath(); | |
| final String path = join(dbPath, 'bytebank.db'); |
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:bytebank/database/app_database.dart'; | |
| import 'package:bytebank/database/contact_dao.dart'; | |
| import 'package:bytebank/models/contact.dart'; | |
| import 'package:flutter/material.dart'; | |
| class ContactForm extends StatefulWidget { | |
| @override | |
| _ContactFormState createState() => _ContactFormState(); | |
| } |
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:bytebank/screens/transactions/list.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'contacts/list.dart'; | |
| class Dashboard extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| appBar: AppBar( |
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:bytebank/screens/transfer/list.dart'; | |
| import 'package:flutter/cupertino.dart'; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(BytebankApp()); | |
| class BytebankApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
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:bytebank/screens/transfer/list.dart'; | |
| import 'package:flutter/cupertino.dart'; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(BytebankApp()); | |
| class BytebankApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
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:bytebank/models/transfer.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:scoped_model/scoped_model.dart'; | |
| import '../../main.dart'; | |
| import 'file:///C:/git/mo20-082020/bytebank/lib/screens/transfer/form.dart'; | |
| class TransfersList extends StatefulWidget { | |
| final List<Transfer> _transfers = 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:bytebank/screens/transfer/list.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:scoped_model/scoped_model.dart'; | |
| void main() => runApp(BytebankApp()); | |
| class BytebankApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return new ScopedModel<DarkModeModel>( |