Skip to content

Instantly share code, notes, and snippets.

View tiagonevestia's full-sized avatar
💻
"Um bom arqueiro acerta o alvo antes de ter disparado." - Zhao Buzhi

Tiago Neves tiagonevestia

💻
"Um bom arqueiro acerta o alvo antes de ter disparado." - Zhao Buzhi
View GitHub Profile
// function useState(initialValue) {
// var _val = initialValue;
// function state() {
// return _val;
// }
// function setState(newVal) {
// _val = newVal;
// }
@tiagonevestia
tiagonevestia / app.js
Created December 12, 2019 02:47
Home
import React from 'react';
import {
View,
ScrollView,
Text,
Dimensions,
TouchableOpacity,
KeyboardAvoidingView,
TextInput,
} from 'react-native';
<h1 align="center">
<br>
<img src="YOUR_LOGO_URL" alt="YOUR_PROJECT_NAME" width="120">
<br>
<br>
YOUR_PROJECT_NAME
</h1>
<p align="center">A little description about your project</p>
<h1 align="center">
<br>
<img src="YOUR_LOGO_URL" alt="YOUR_PROJECT_NAME" width="120">
<br>
<br>
YOUR_PROJECT_NAME
</h1>
<p align="center">A little description about your project</p>

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@tiagonevestia
tiagonevestia / AnimatedBuilder.dart
Last active April 10, 2020 19:22
Animação Flutter
import 'package:flutter/material.dart';
import 'package:flutter_modular/flutter_modular.dart';
import 'login_controller.dart';
class LoginPage extends StatefulWidget {
final String title;
const LoginPage({Key key, this.title = "Login"}) : super(key: key);
@override
_LoginPageState createState() => _LoginPageState();
}
@tiagonevestia
tiagonevestia / list.txt
Last active April 11, 2020 13:30
Lista Flutter
Tutorials
https://resocoder.com/
https://www.filledstacks.com/tutorials
https://www.raywenderlich.com/library?q=flutter&sort_order=relevance
Courses
https://www.lynda.com/search?q=flutter
https://www.lynda.com/search?q=dart
https://www.raywenderlich.com/library?q=flutter&sort_order=relevance
https://www.raywenderlich.com/library?q=dart&sort_order=relevance
@tiagonevestia
tiagonevestia / flutter.md
Created April 10, 2020 14:12 — forked from matteocrippa/flutter.md
Flutter Cheatsheet

Flutter

A quick cheatsheet of useful snippet for Flutter

Widget

A widget is the basic type of controller in Flutter Material. There are two type of basic Widget we can extend our classes: StatefulWidget or StatelessWidget.

Stateful

StatefulWidget are all the widget that interally have a dynamic value that can change during usage. It can receive an input value in the constructor or reference to functions. You need to create two classes like:

@tiagonevestia
tiagonevestia / rectangularnotch.dart
Created May 6, 2020 19:24 — forked from erluxman/rectangularnotch.dart
Rectangular notched Fab
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
import React from "react";
import { storiesOf } from "@storybook/react";
storiesOf("Titulo", module).add("Descricao", () => {});