Skip to content

Instantly share code, notes, and snippets.

View smkhalsa's full-sized avatar

Sat Mandir S. Khalsa smkhalsa

  • San Francisco, CA
View GitHub Profile
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
class Destination {
const Destination(this.title, this.icon, this.color);
final String title;
final IconData icon;
final MaterialColor color;
}
class CachedImage extends Component {
constructor(props) {
super(props)
this.state = {
cachedImagePath: null
}
}
componentWillMount() {
if (this.props.source)
@staltz
staltz / introrx.md
Last active May 6, 2024 01:44
The introduction to Reactive Programming you've been missing