![space_shooter_game.gif](https://gist.github.com/GitLeandroHub/7b5ed27fb721f8b6696c77ade0b5bb0d/raw/c5357d270eba50444f9a4326444bbdf34cd3638a/space_shooter_game.gif)
![blockchain_NFT_game.gif](https://gist.github.com/GitLeandroHub/a2e686afed739a4ad6a04decadfca501/raw/1b49e32a58350c419c725afc55b982dc05c7208d/blockchain_NFT_game.gif)
This file contains 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:flame/game.dart'; | |
import 'package:flame/time.dart'; | |
//util é async, entao alterar o main para async | |
import 'package:flame/flame.dart'; | |
//utilizar FlameAnimation como Alias para não dar conflito com animation do Dart | |
import 'package:flame/animation.dart' as FlameAnimation; | |
import 'dart:math'; | |
import 'package:flame/spritesheet.dart'; |
This file contains 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
//D:\Projetos\CursoFlutter\FlutterApps\Login\login_stateful\lib\src\app.dart | |
import 'package:flutter/material.dart'; | |
import 'screens/login_screen.dart'; | |
class App extends StatelessWidget { | |
Widget build(context) { | |
return MaterialApp( | |
title: 'Log Me In!', | |
home: Scaffold( |
This file contains 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:html'; | |
import 'dart:async'; | |
void main() { | |
final InputElement input = querySelector('input'); | |
final DivElement div = querySelector('div'); | |
final validateEmail = new StreamTransformer.fromHandlers( | |
handleData: (inputValue, sink) { | |
if (inputValue.contains('@')) { |
This file contains 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:html'; | |
void main() { | |
final ButtonElement button = querySelector('button'); | |
final InputElement input = querySelector('input'); | |
button.onClick | |
.take(4) | |
.where((event) => input.value == 'banana') | |
.listen( |