Skip to content

Instantly share code, notes, and snippets.

View bmatheus91's full-sized avatar

Matheus de Sousa Barros bmatheus91

View GitHub Profile
@bmatheus91
bmatheus91 / AndroidManifest.xml
Created February 25, 2019 17:53
Android Activity Transparente - Nativo
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.transparenttest" >
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
@bmatheus91
bmatheus91 / swipe_button.dart
Last active March 18, 2019 12:01 — forked from slightfoot/swipe_button.dart
Flutter Swipe Button Demo
import 'package:flutter/material.dart';
import 'package:flutter/physics.dart';
void main() => runApp(SwipeDemoApp());
class SwipeDemoApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@bmatheus91
bmatheus91 / connectivity.dart
Created March 25, 2019 13:46
Uso da lib connectivity para pegar o IP na rede WIFI do aparelho.
import 'package:connectivity/connectivity.dart';
import 'dart:async';
import 'package:flutter/services.dart';
ConnectivityResult result;
String wifiName, wifiIP;
// Primeiro e necessario verificar a conectividade do aparelho
try {
@bmatheus91
bmatheus91 / dummy_data.dart
Created July 5, 2019 23:39
Dados da aplicação
import 'package:flutter/material.dart';
import './models/category.dart';
import './models/meal.dart';
const DUMMY_CATEGORIES = const [
Category(
id: 'c1',
title: 'Italian',
color: Colors.purple,