Skip to content

Instantly share code, notes, and snippets.

View Maadhav's full-sized avatar
💻
Flutterizing...

Maadhav Sharma Maadhav

💻
Flutterizing...
View GitHub Profile
@rotoglup
rotoglup / 201909 - a look into threejs editor.md
Last active February 10, 2022 10:26
201909 - A look into threejs editor app

A look into threejs editor

My notes while reading the source code from threejs Editor app, as I've been curious about :

  • the editor architecture
  • the undo/redo system
  • the camera control behaviour & code
  • the object transform gizmos behaviours & code
@lifenautjoe
lifenautjoe / random_hex_color.dart
Created December 13, 2018 16:08
Random Hex Color Dart
import 'dart:math';
Random random = new Random();
String generateRandomHexColor(){
int length = 6;
String chars = '0123456789ABCDEF';
String hex = '#';
while(length-- > 0) hex += chars[(random.nextInt(16)) | 0];
return hex;
@mjohnsullivan
mjohnsullivan / scroll_detection.dart
Created July 11, 2018 17:13
Detect when a scrollable widget starts or stops scrolling
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override