Skip to content

Instantly share code, notes, and snippets.

@hawkkiller
hawkkiller / cool_animated_switcher.dart
Last active December 12, 2025 19:40
This is a cool sliding transition for widgets. It's inspired by the wolt_modal_sheet package, which has the same animation but is coupled with the Bottom Sheet/Pages API. This implementation should be also more performant and less fragile.
import 'package:flutter/material.dart';
/// A widget that transitions between two children using a fade and slide animation.
class PageTransitionSwitcher extends StatelessWidget {
const PageTransitionSwitcher({
required this.child,
this.isForwardMove = true,
super.key,
});
@Kirchlive
Kirchlive / 1-claudia-windows-fix.md
Last active January 22, 2026 10:18
Claudia Windows Fix - Enable Claude Code on Windows via WSL

Claudia on Windows - Community Fix v4.2

A comprehensive guide to run Claudia GUI on Windows using WSL (Windows Subsystem for Linux) as a compatibility bridge.

🎯 Quick Overview

This fix enables Claudia to run on Windows by:

  • Installing Claude CLI in WSL where it works natively
  • Creating a Windows bridge script (claude.bat) that Claudia can communicate with
  • Automatically detecting and adapting to different Claude CLI versions
@sunderee
sunderee / try_catch.dart
Created February 24, 2025 12:43
Native Dart helpers that use records to return the result or thrown error/exception object.
(T?, Object?) tryCatch<T extends Object>(T Function() function) {
try {
final result = function.call();
return (result, null);
} catch (error) {
return (null, error);
}
}
Future<(T?, Object?)> tryCatchAsync<T extends Object>(
@TahaTesser
TahaTesser / Flutter Network.md
Last active December 25, 2025 10:01
A collection of active Flutter YouTube content creators, newsletters and blogs, personalities, and platforms. If you've suggestions for active content creators, please comment below.
@yifanzz
yifanzz / code-editor-rules.md
Created December 17, 2024 00:01
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
@bizz84
bizz84 / update-android-project.sh
Last active January 30, 2026 02:25
Script to update Gradle, Java and other Android project settings in a Flutter project
#!/bin/bash
# Update Gradle, Java and other Android project settings in a Flutter project
# Works with both .gradle and .gradle.kts build files
# See: https://gradle.org/releases/
# See: https://developer.android.com/build/releases/gradle-plugin#compatibility
DESIRED_GRADLE_VERSION="8.11.1"
# Build errors often show the required Java version
DESIRED_JAVA_VERSION="17"
# See: https://developer.android.com/ndk/downloads
@aileftech
aileftech / hex-colors.txt
Created October 1, 2022 18:10
A Bash one-liner to produce a list of HEX color codes that read like (supposedly) valid English words
$ grep -P "^[ABCDEFabcdefOoIi]{6,6}$" /usr/share/dict/words | tr 'OoIi' '0011' | tr '[:lower:]' '[:upper:]' | awk '{print "#" $0}'
#ACAD1A
#B0BB1E
#DEBB1E
#AB1DED
#ACAC1A
#ACCEDE
#AC1D1C
#BAB1ED
#BA0BAB
@ykiran
ykiran / main.dart
Last active September 17, 2022 05:43
Rating Widget
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@rohan20
rohan20 / main.dart
Created December 31, 2021 13:35
Flutter close iOS number keyboard (has no "Done" button)
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_keyboard_visibility/flutter_keyboard_visibility.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@dileepadev-old
dileepadev-old / .gitignore
Last active December 7, 2024 14:51
.gitignore for Flutter projects
### ------------------------- Flutter.gitignore ------------------------ ###
# Miscellaneous
*.class
#*.lock
*.log
*.pyc
*.swp
.DS_Store
.atom/