Skip to content

Instantly share code, notes, and snippets.

View andre-bahia's full-sized avatar
🤟

André Luis andre-bahia

🤟
View GitHub Profile
@rayjadore
rayjadore / flutter-dropdown.dart
Created January 29, 2019 10:27 — forked from naumanahmed19/flutter-dropdown.dart
Flutter DropdownButton With Validation
String _town;
_townField() {
return FormField<String>(
validator: (value) {
if (value == null) {
return "Select your area";
}
},
onSaved: (value) {
formData['town'] = value;
@branflake2267
branflake2267 / main.dart
Last active May 7, 2021 03:36
Flutter - Navigation Drawer Left or Right
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(

Github Two-Factor Authentication (2FA) for Brazil via SMS

The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console. The option Brazil +55 will be the first on the list, already selected:


🇧🇷 [pt-BR]

Autenticação em dois fatores (2FA) do GitHub para o Brasil via SMS