This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ImagePicker from 'react-native-image-picker'; | |
export async function imagePicker(callback, errorHandler = () => {}) { | |
const options = { | |
title: 'Escolha uma foto', | |
takePhotoButtonTitle: 'Tirar uma foto...', | |
chooseFromLibraryButtonTitle: 'Escolher da galeria...', | |
cameraType: 'front', | |
mediaType: 'photo', | |
cancelButtonTitle: 'Cancelar', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const RootStack = createStackNavigator({ | |
Tabs: { | |
screen: Tabs, | |
navigationOptions: ({ navigation }) => { | |
return { | |
header: ( | |
<Appbar.Header> | |
<Appbar.Content title="Teste" subtitle="Subtitle" /> | |
<IconButton | |
icon="person" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CXX = g++ | |
CXXFLAGS = -Wall -g | |
main: main.o Numero.o | |
$(CXX) $(CXXFLAGS) -o main main.o Numero.o | |
main.o: main.cpp Numero.o | |
$(CXX) $(CXXFLAGS) -c main.cpp | |
Numero.o: Numero.h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
class Numero{ | |
public: | |
int valor; | |
int gera_num(){ | |
valor = rand() % 10000 + 1; |