Skip to content

Instantly share code, notes, and snippets.

View rutvik110's full-sized avatar
🎵
Humming

Rutvik Tak rutvik110

🎵
Humming
View GitHub Profile
@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).

@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"
@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 {
//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;
@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;
class JsonParserIsolate {
final String input;
JsonParserIsolate(this.input);
Future parseJson({Function(String)? onError}) async {
final completer = Completer();
var port = ReceivePort();
var errorPort = ReceivePort();
@dnfield
dnfield / image_size_data.dart
Created March 3, 2020 22:08
Image size parsing in Dart
import 'dart:typed_data';
import 'package:meta/meta.dart';
/// Image formats supported by Flutter.
enum ImageFormat {
/// A Portable Network Graphics format image.
png,
/// A JPEG format image.
///
@jeroen-meijer
jeroen-meijer / fluttercleanrecursive.sh
Created September 15, 2019 13:00
Flutter Clean Recursive - Clear up space on your hard drive by cleaning your Flutter projects. This script searches for all Flutter projects in this directory and all subdirectories and runs 'flutter clean'. Note: may take a long time for folders with large amounts of projects.
#!/bin/sh
# To run, download the script or copy the code to a '.sh' file (for example 'fluttercleanrecursive.sh') and run like any other script:
# sh ./fluttercleanrecursive.sh
# or
# sudo sh fluttercleanrecursive.sh
echo "Flutter Clean Recursive (by jeroen-meijer on GitHub Gist)"
echo "Looking for projects... (may take a while)"
@slightfoot
slightfoot / rubber_range_picker.dart
Last active January 19, 2023 01:09
Rubber Range Picker - Based on https://dribbble.com/shots/6101178-Rubber-Range-Picker-Open-Source by Cuberto - 14th March 2019
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/scheduler.dart';
void main() => runApp(ExampleApp());
class ExampleApp extends StatelessWidget {
@override
#pragma glslify: range = require('glsl-range');
void main () {
// Your incoming value
float x = 25.0;
// Map value to 0..1 domain
// (no need if x is already in 0..1 range)
float min = 10.0;
float max = 100.0;