Skip to content

Instantly share code, notes, and snippets.

View flippingbitss's full-sized avatar
:octocat:

Manpreet Singh Matharu flippingbitss

:octocat:
  • Toronto
View GitHub Profile
class Blob extends StatelessWidget {
final double rotation;
final double scale;
final Color color;
const Blob({@required this.color, this.rotation = 0, this.scale = 1})
: assert(color != null);
@override
Widget build(BuildContext context) {
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
class PlayButton extends StatefulWidget {
final bool initialIsPlaying;
final Icon playIcon;
final Icon pauseIcon;
final VoidCallback onPressed;
PlayButton({
@required this.onPressed,
this.initialIsPlaying = false,
this.playIcon = const Icon(Icons.play_arrow),
import 'package:flutter/material.dart';
import 'dart:math' show pi;
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {