Skip to content

Instantly share code, notes, and snippets.

View felipecarvalho's full-sized avatar
🎯
Focusing

Felipe Carvalho felipecarvalho

🎯
Focusing
  • São Paulo, Brazil
View GitHub Profile
@flschweiger
flschweiger / Flutter.format
Created February 16, 2019 20:19
Flutter color format file for Sip Color Picker
{
"name" : "Flutter",
"clipboardFormat" : {
"function" : "concat",
"y" : ")",
"x" : {
"x" : "const Color(0xFF",
"function" : "concat",
"y" : {
"x" : "hex[red]hex[green]hex[blue]",
@gildaswise
gildaswise / rounded_modal.dart
Last active October 7, 2021 09:39
A custom implementation of the showModalBottomSheet, with rounded corners
import 'dart:async';
import 'package:flutter/material.dart';
/// Below is the usage for this function, you'll only have to import this file
/// [radius] takes a double and will be the radius to the rounded corners of this modal
/// [color] will color the modal itself, the default being `Colors.white`
/// [builder] takes the content of the modal, if you're using [Column]
/// or a similar widget, remember to set `mainAxisSize: MainAxisSize.min`
/// so it will only take the needed space.
// Import the splash.dart into your main app and use like:
// ex: Splash(iconData:Icons.restaurant, label: 'MY APP',);
import 'package:flutter/material.dart';
class Splash extends StatefulWidget {
final IconData iconData;
final String label;