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
| void main(List<String> args) { | |
| final di = DI(); | |
| final di2 = DI(); | |
| di.claim(Banana()); | |
| di2.claim(TiposDeBanana.nanica); | |
| final Banana banana = di.reclaim(); | |
| final Banana banana2 = di2.reclaim(); | |
| final TiposDeBanana tiposDeBanana = di2.reclaim(); |
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:collection'; | |
| void main { | |
| final validationNumber = Queue(); | |
| validationNumber.add(isEven); | |
| validationNumber.add(isPositive); | |
| // adicionar as funções de validação na fila de validações |
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
| void main() { | |
| final test = [1, 2, 10, 9, 123, -1, -8]; | |
| // Ordenando um array | |
| test.sort(); | |
| // Filtrando um array | |
| test.removeWhere((e) => e < 0); | |
| // Manipulando os valores do array |
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
| Row( | |
| mainAxisAlignment: MainAxisAlignment.center, | |
| children: [ | |
| Flexible( | |
| child: Column( | |
| children: [ | |
| Semantics( | |
| child: Icon(Icons.volume_up), | |
| label: 'aumentar o volume', // Sobrescrever o texto ligo pelo leitor de texto | |
| sortKey: OrdinalSortKey(1.0), // Indica que esse será o primeiro item a ser lido |
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
| Row( | |
| children: [ | |
| Text( | |
| 'Seu saldo é de R\$${300.0}', | |
| semanticsLabel: 'Seu saldo é de ${300} reais', // sobrescreve o texto lido pelo leitor de texto | |
| ), | |
| Image.network( | |
| 'https://upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Mastercard_2019_logo.svg/1280px-Mastercard_2019_logo.svg.png', | |
| semanticLabel: 'mastercard', // sobrescreve o texto lido pelo leitor de texto | |
| ), |
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
| enum Flavor { | |
| DEV, | |
| HOMOLOG, | |
| PROD, | |
| } | |
| class F { | |
| static Flavor? appFlavor; | |
| static String get title { |
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
| flutter_icons: | |
| android: true | |
| ios: true | |
| image_path: "assets/ic_launcher_dev.png" |
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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Flutter - DEV", | |
| "type": "dart", | |
| "request": "launch", | |
| "program": "lib/main-dev.dart", | |
| "args": [ | |
| "--flavor dev" |
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
| flavorizr: | |
| app: | |
| android: | |
| flavorDimensions: "flavor-type" | |
| ios: | |
| flavors: | |
| dev: | |
| app: | |
| name: "Dev 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
| class _MyHomePageState extends State<MyHomePage> { | |
| bool _isGuess = false; | |
| @override | |
| void initState() { | |
| super.initState(); | |
| // Seta se o usuário no momento já está logado | |
| FirebaseCrashlytics.instance.setCustomKey('guess', _isGuess); | |
| // Seta o id do usuário para melhoria na investigação | |
| FirebaseCrashlytics.instance.setUserIdentifier(widget.user['id']); |
NewerOlder