Skip to content

Instantly share code, notes, and snippets.

View samuelematias's full-sized avatar

samuca samuelematias

View GitHub Profile
@samuelematias
samuelematias / flutter_all_fastlane.sh
Created June 23, 2020 23:15 — forked from rodydavis/flutter_all_fastlane.sh
Using Fastlane for Flutter to deploy iOS, Mac, Android and Web
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
@samuelematias
samuelematias / flutter_github_ci.yml
Created June 22, 2020 23:10 — forked from rodydavis/flutter_github_ci.yml
Flutter Github Actions Build and Deploy Web to Firebase Hosting, iOS to Testflight, Android to Google Play (fastlane)
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build_web:
@samuelematias
samuelematias / launch.json
Last active June 10, 2020 13:57
[Flutter] Open 2 devices in debug mode on VsCode.
//To get your devideId follow this steps:
//1 - Open your emulator/simulator (Android/iOS/Browser)
//2 - Run on terminal "flutter devices"
//3 - Get de deviceId (second param: https://i.imgur.com/dZHsyrc.png)
// More infos: https://github.com/flutter/flutter/wiki/Multi-device-debugging-in-VS-Code
{
"version": "0.2.0",
"configurations": [
{
"name": "Android",
@samuelematias
samuelematias / modal_with_keyboard.dart
Created May 15, 2020 16:28
Modal with keyboard Flutter
showModalBottomSheet(
isScrollControlled: true,
context: context,
builder: (context) {
return SingleChildScrollView(
child:Container(
padding:
EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom),
child: AnyChild(),
)
extension TextExtension on Text {
Text h1({TextStyle style}) {
TextStyle defaultStyle = TextStyle(
fontFamily: 'Nunito_Sans',
fontSize: 36,
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
letterSpacing: -0.02,
color: SoulphiaTheme.defaultGraySwatch[50],
);
import 'package:flutter/material.dart';
class NameInitialsWidget extends StatelessWidget {
final double width;
final double height;
final String text;
final double fontSize;
final double margin;
const NameInitialsWidget(
@samuelematias
samuelematias / extension_example.dart
Created March 12, 2020 20:06
Examples of Dart extension methods
extension Paddings on Widget {
Widget paddingAll(double padding) => Padding(
padding: EdgeInsets.all(padding),
child: this,
);
}
extension TextStyles on Text {
Text h1() {
if (this is Text) {