Skip to content

Instantly share code, notes, and snippets.

View bradintheusa's full-sized avatar
🏐
Cloud Functions & Flutter

BradInTheUSA bradintheusa

🏐
Cloud Functions & Flutter
View GitHub Profile
@bizz84
bizz84 / show_alert_dialog.dart
Last active September 8, 2025 18:33
Helper function for showing an adaptive alert dialog (Material, Cupertino)
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
/// Helper function for showing an adaptive alert dialog
/// Returns:
/// - true if the default action was selected
/// - false if the cancel action was selected
/// - null if the dialog was dismissed
Future<bool?> showAlertDialog({
required BuildContext context,
@Aldo111
Aldo111 / main.dart
Created June 19, 2021 21:04
Visual effect of 2 sections of content curving seamlessly into each other at opposite ends of their border
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
const primaryColor = Color(0xFFFDFDFD);
const secondaryColor = Color(0xFF252525);
class MyApp extends StatelessWidget {
@FilledStacks
FilledStacks / stacked_snippets.json
Last active January 4, 2025 03:06
Flutter / Stacked snippets for productivity
{
"Freezed model": {
"prefix": "frz",
"body": [
"@freezed",
"class ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/g}} with _$${1} {",
" factory ${1}({",
" required ${2:String id},",
" }) = _${1};",
"}"
@CodingDoug
CodingDoug / README.md
Last active August 8, 2025 20:09
Copying data from Firebase Realtime Database to a Google Sheet in real time via Cloud Functions
@staltz
staltz / introrx.md
Last active January 29, 2026 10:36
The introduction to Reactive Programming you've been missing
@dpogorzelski
dpogorzelski / directives.js
Created August 27, 2013 08:16
Twitter share button as AngularJS directive.
directives.directive('twitter', [
function() {
return {
link: function(scope, element, attr) {
setTimeout(function() {
twttr.widgets.createShareButton(
attr.url,
element[0],
function(el) {}, {
count: 'none',