Skip to content

Instantly share code, notes, and snippets.

View rutvik110's full-sized avatar
🎵
Humming

Rutvik Tak rutvik110

🎵
Humming
View GitHub Profile
class JsonParserIsolate {
final String input;
JsonParserIsolate(this.input);
Future parseJson({Function(String)? onError}) async {
final completer = Completer();
var port = ReceivePort();
var errorPort = ReceivePort();
@wolfenrain
wolfenrain / outline_in.glsl
Created November 10, 2022 22:25
GLSL outline shaders made for Flutter with Umbra
uniform vec2 imageResolution;
uniform float lineThickness;
uniform vec4 lineColor;
uniform sampler2D image;
bool check_bounds(vec4 a, vec4 b, vec4 c, vec4 d, vec4 e, vec4 f, vec4 g, vec4 h) {
if (a.a < 0.5) return true;
if (b.a < 0.5) return true;
if (c.a < 0.5) return true;
if (d.a < 0.5) return true;
//get the position of the latest coordinate on the curve at any point in animation based on animation position(t)
class BezierTween extends Tween<Offset> {
BezierTween({required this.begin, required this.end, required this.control})
: super(begin: begin, end: end);
@override
final Offset begin;
@override
final Offset end;
final Offset control;
@rutvik110
rutvik110 / ffmpegkit_helper.dart
Created December 27, 2022 02:03
FFmpegKit helper with imagesToVideo, imagesToGif, videoToGif helper
import 'dart:developer' as dev;
import 'dart:io';
import 'package:ffmpeg_kit_flutter/ffmpeg_kit.dart';
import 'package:path_provider/path_provider.dart';
import 'package:share_plus/share_plus.dart';
class FFMPEGKITHelper {
// image files should be stored in numbered format like 1.png, 2.png, 3.png etc to work with ffmpeg
static Future<String> imagesToMp4(List<File> images) async {
@mono0926
mono0926 / workaround.sh
Last active April 5, 2023 20:34
Xcode 14.3 x Flutter 3.7.9 x CocoaPods 1.12.0 Workaround
sed -i "" 's/source="$(readlink "${source}")"/source="$(readlink -f "${source}")"/g' "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh"
@eseidel
eseidel / flutter_companies.md
Last active November 13, 2023 14:28
List of companies serving Flutter developers

This is a list of companies serving Flutter developers who replied to my Twitter thread on June 14th, 2023.

This does not include companies using Flutter (there are simply too many to list!), only those offering products or services for Flutter developers.

Presence on this list is not imply any endorsement of the company or its products (other than Shorebird, of course, I endourse my own company).