Skip to content

Instantly share code, notes, and snippets.

View rkpontes's full-sized avatar

Raphael Pontes rkpontes

View GitHub Profile
include ':app'
def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
def plugins = new Properties()
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
if (pluginsFile.exists()) {
pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
}
// Imagens da pasta assets >> https://drive.google.com/drive/folders/1oM5aVAx-Q-UoddSv9yQj4uvDe5O1VZ7O?usp=sharing
import 'package:flutter/material.dart';
class Page3 extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Expanded(
child: Container(
padding: const EdgeInsets.only(top: 18, left: 10, right: 10),
class CompanyView extends GetView<CompanyController> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: [
Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
class SchedulesView extends GetView<SchedulesController> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Agendar Atendimento'),
centerTitle: true,
),
body: Container(
child: ListView(
@rkpontes
rkpontes / ssh_git_key.md
Created July 25, 2024 12:57
Chave SSH para GitHub, GitLab ou Bitbucket

Chave SSH para GitHub, GitLab ou Bitbucket

1 - Criar uma nova chave SSH

ssh-keygen -t rsa -b 4096 -C "[email protected]"

Continue apertando enter sem inserir nada

@rkpontes
rkpontes / App.js
Last active November 8, 2024 13:43
React useState and useEffects
import React, {useEffect, useState} from 'react';
import './style.css';
// https://63f8ba616978b1f9105fb041.mockapi.io/users
function App() {
const [users, setUsers] = useState([]);
useEffect(() => {