Skip to content

Instantly share code, notes, and snippets.

View baksoy's full-sized avatar

Bera baksoy

  • MuleSoft
  • Washington, D.C.
View GitHub Profile
@baksoy
baksoy / dropdown_popup.dart
Created April 11, 2019 03:10 — forked from slightfoot/dropdown_popup.dart
Custom Dropdown Popup Menu Example - Custom Enum, Theming, Extending Existing API, Animations, Transitions, Routes, Custom shadows, borders and painting. Based on https://dribbble.com/shots/2369431-Daily-UI-027-Dropdown
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:vector_math/vector_math_64.dart' show radians;
void main() => runApp(ExampleApp());
class ExampleItem {
static const Pineapples = ExampleItem._('Pineapples');
static const Watermelons = ExampleItem._('Watermelons');
static const StarFruit = ExampleItem._('Star Fruit');
@baksoy
baksoy / chips.dart
Created September 19, 2018 20:40 — forked from slightfoot/chips.dart
Material Chips Input #HumpdayQandA #Flutter
import 'dart:async';
import 'package:flutter/material.dart';
// See: https://twitter.com/shakil807/status/1042127387515858949
void main() => runApp(ChipsDemoApp());
class ChipsDemoApp extends StatelessWidget {
@override
@baksoy
baksoy / firestore_animated_list.dart
Created September 11, 2018 19:09 — forked from slightfoot/firestore_animated_list.dart
Firestore Animated List implementation.
// Copyright 2017, the Flutter project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
import 'dart:collection';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
@baksoy
baksoy / firebase_storage_image.dart
Created May 13, 2018 03:56 — forked from jeroen-meijer/firebase_storage_image.dart
A Flutter widget that handles and shows an image downloaded from a Firebase Storage document.
import 'package:firebase_storage/firebase_storage.dart';
import 'package:flutter/material.dart';
import 'package:meta/meta.dart';
enum ImageDownloadState { Idle, GettingURL, Downloading, Done, Error }
class FirebaseStorageImage extends StatefulWidget {
/// The reference of the image that has to be loaded.
final StorageReference reference;
/// The widget that will be displayed when loading if no [placeholderImage] is set.
@baksoy
baksoy / .bashrc
Last active August 24, 2017 17:48 — forked from thimes/.bashrc
My BashRc file
alias ls='ls -laG'
alias ll='ls -l'
# adb commands targeted at specific devices without having to remember the device string
alias adbm='adb -s TA989069LK'
alias adbn='adb -s HT4CTJT01433'
alias adbs='adb -s 1a138b5e'
# copy prefs from an xml file to the device, save some of the settings setup work
function cpPrefs {