Skip to content

Instantly share code, notes, and snippets.

View helderlj's full-sized avatar
🏠
Working from home

Helder Lima de Jesus helderlj

🏠
Working from home
View GitHub Profile
@helderlj
helderlj / main.dart
Last active May 7, 2024 23:33
Calculo de Fibonacci da Flutterando
void main() {
final int iterations = 10;
int ant1 = 0;
int ant2 = 1;
final fibo = List.generate(iterations, (i){
var temp = ant1;
ant1 = ant2;
ant2 = temp + ant2;
@helderlj
helderlj / main.dart
Last active May 7, 2024 00:11
Calculo de IMC da Flutterando
void main() {
var altura = 1.60;
var peso = 65.0;
var imc = calcularIMC(peso: peso, altura: altura);
print(classificarIMC(imc));
}
double calcularIMC({required double peso, required double altura}) {
return peso / (altura * altura);
<x-forms::field-wrapper
:id="$getId()"
:label="$getLabel()"
:label-sr-only="$isLabelHidden()"
:helper-text="$getHelperText()"
:hint="$getHint()"
:hint-icon="$getHintIcon()"
:required="$isRequired()"
:state-path="$getStatePath()"
>