Skip to content

Instantly share code, notes, and snippets.

View PlugFox's full-sized avatar
🦊
🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊

Plague Fox PlugFox

🦊
🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊🦊
View GitHub Profile
@PlugFox
PlugFox / main.dart
Last active September 22, 2024 18:27
Custom layout with Flutter
/*
* Custom layout with Flutter
* https://gist.github.com/PlugFox/8dbafc696927ab7111d03250cc01b712
* https://dartpad.dev?id=8dbafc696927ab7111d03250cc01b712
* Mike Matiunin <plugfox@gmail.com>, 22 September 2024
*/
import 'dart:math' as math;
import 'package:flutter/material.dart';
@PlugFox
PlugFox / main.dart
Last active August 27, 2024 14:40
Behavior distinct
/*
* Behavior distinct
* https://gist.github.com/PlugFox/d2afc6bd33c138e9ef0e6c74f405c779
* https://dartpad.dev?id=d2afc6bd33c138e9ef0e6c74f405c779
* Mike Matiunin <plugfox@gmail.com>, 27 August 2024
*/
// ignore_for_file: avoid_print
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'dart:math' as math;
class CustomLayout extends MultiChildRenderObjectWidget {
CustomLayout({
Key key,
List<Widget> children = const <Widget>[],
}) : super(key: key, children: children);
@PlugFox
PlugFox / main.dart
Last active August 6, 2024 16:49
Generator of random words, sentences and paragraphs.
/*
* Generator of random words, sentences and paragraphs.
* https://gist.github.com/PlugFox/153b79283ada0035da24f44499462e05
* https://dartpad.dev?id=153b79283ada0035da24f44499462e05
* Mike Matiunin <plugfox@gmail.com>, 06 August 2024
*/
// ignore_for_file: avoid_print
import 'dart:convert';
@PlugFox
PlugFox / main.dart
Created July 25, 2024 18:48
Фракталы Flutter
import 'package:flutter/material.dart';
import 'dart:math' as math;
import 'dart:ui';
void main() => runApp(
MaterialApp(
home: Scaffold(
body: SafeArea(
child: GridView.count(
padding: EdgeInsets.all(32.0),
@PlugFox
PlugFox / main.dart
Last active July 20, 2024 15:08
Animated Custom Painter
/*
* Animated Painter
* https://gist.github.com/PlugFox/3a778c8cdad13ea5676b642739fc8dcc
* https://dartpad.dev?id=3a778c8cdad13ea5676b642739fc8dcc
* Mike Matiunin <plugfox@gmail.com>, 20 July 2024
*/
import 'dart:async';
@PlugFox
PlugFox / index.js
Last active July 27, 2024 18:01
Tampermonkey Auto Scroll Toggle for comick.io
// ==UserScript==
// @name Auto Scroll Toggle for comick.io
// @namespace plugfox
// @version 1.0
// @description Toggle auto scroll on and off with a hotkey, and stop on page blur
// @author @plugfox
// @run-at document-idle
// @homepage https://gist.github.com/PlugFox/7315cad8ef028e2751f4a971ca9d59e9
// @homepageURL https://gist.github.com/PlugFox/7315cad8ef028e2751f4a971ca9d59e9
// @match *://comick.io/*
@PlugFox
PlugFox / main.dart
Last active July 13, 2024 07:21
Custom Clipper Ticket with Circular Cutouts (Serrator)
/*
* Custom Clipper Ticket with Circular Cutouts (Serrator)
* https://gist.github.com/PlugFox/9ab286842c7fab41dd8181a9f3a8461b
* https://dartpad.dev?id=9ab286842c7fab41dd8181a9f3a8461b
* Mike Matiunin <plugfox@gmail.com>, 13 July 2024
*/
import 'package:flutter/material.dart';
void main() => runApp(
@PlugFox
PlugFox / main.dart
Last active September 2, 2024 14:20
Authentication management example
/*
* Authentication management example
* HttpClient <--> AuthenticationController <--> Navigator or LoginScreen
*
* https://gist.github.com/PlugFox/538d7cfdd7149770925fe4f434fc2e84
* https://dartpad.dev?id=538d7cfdd7149770925fe4f434fc2e84
* Mike Matiunin <plugfox@gmail.com>, 12 July 2024
*/
import 'dart:async';
@PlugFox
PlugFox / main.dart
Last active September 11, 2024 09:41
Controlled Stateful Widget
/*
* Controlled Stateful Widget
* https://gist.github.com/PlugFox/629202b0a7bcde8de3a7503bd33308bc
* https://dartpad.dev?id=629202b0a7bcde8de3a7503bd33308bc
* Mike Matiunin <plugfox@gmail.com>, 05 July 2024
*/
import 'dart:async';
import 'package:flutter/material.dart';