Skip to content

Instantly share code, notes, and snippets.

View hillelcoren's full-sized avatar

Hillel Coren hillelcoren

View GitHub Profile
@slightfoot
slightfoot / main.dart
Last active June 19, 2022 11:15
Firebase Login/Logout Example - by Simon Lightfoot
/*
This example uses the following packages:
firebase_auth: 0.14.0+5
google_sign_in: 4.0.7
provider: 3.1.0+1
Make sure you have setup your project with Firebase by following these instructions:
1. Follow Option 1 instructions here up to Step 3
@slightfoot
slightfoot / rubber_range_picker.dart
Last active January 19, 2023 01:09
Rubber Range Picker - Based on https://dribbble.com/shots/6101178-Rubber-Range-Picker-Open-Source by Cuberto - 14th March 2019
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/scheduler.dart';
void main() => runApp(ExampleApp());
class ExampleApp extends StatelessWidget {
@override
@slightfoot
slightfoot / executors.dart
Created September 22, 2018 15:02
Executors in Dart for Flutter
import 'dart:async';
import 'dart:isolate';
void main(List<String> arguments) async {
Executor executor = await Executor.create();
executor.run(Task('Name 1', task1));
executor.run(Task('Name 2', task2));
executor.run(Task('Name 3', task3));
print('sent');