Skip to content

Instantly share code, notes, and snippets.

View jogboms's full-sized avatar
💙
Building Awesome w/ Dart & Flutter

Jeremiah Ogbomo jogboms

💙
Building Awesome w/ Dart & Flutter
View GitHub Profile
@itdhsc
itdhsc / lazygit-gh-stack.yml
Last active August 11, 2026 08:31
Lazygit GitHub Stack Custom Command
# Fetch remote updates, rebase the stack onto the latest base, and push changed layers.
# Works best when stack branches use the `stack/` prefix, e.g. `stack/my-feature`.
customCommands:
- key: '#'
description: 'gh stack'
commandMenu:
- key: 'h'
description: 'Handle stack state'
commandMenu:
@Mastersam07
Mastersam07 / routing.md
Last active July 20, 2026 20:51
Flutter Routing Is a Pre-Dart-3 Design

Routes as Values

Most Flutter routers were architected before Dart 3 had sealed types and pattern matching. One has been redesigned around them. Here's the value-oriented shape no one has built yet.


The thesis

Flutter's two most-adopted routing libraries — go_router and auto_route — were architected in a world before Dart had sealed classes, exhaustive pattern matching, and records. Both shipped their core API in 2021–2022, and both still organize themselves around the same primitive: a string path, parsed at runtime, with type safety bolted on via build_runner.

@aderhachev
aderhachev / cupertino_highlight.dart
Created July 31, 2025 17:17
CupertinoHighlight for InkWell
import 'package:flutter/material.dart';
class _CupertinoSplashFactory extends InteractiveInkFeatureFactory {
const _CupertinoSplashFactory();
@override
InteractiveInkFeature create({
required MaterialInkController controller,
required RenderBox referenceBox,
required Offset position,
@Piinks
Piinks / main.dart
Last active January 18, 2024 21:24
Two Dimensional Grid in Flutter
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
@jogboms
jogboms / !Pods.md
Last active January 12, 2025 00:04
Re-implementing Riverpod
@jogboms
jogboms / main.dart
Last active September 4, 2022 11:35
Parallax Header
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() => runApp(
const MaterialApp(
debugShowCheckedModeBanner: false,
home: ParallaxHeaderDemo(),
),
);
@jogboms
jogboms / README.md
Created August 25, 2022 12:56 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@jogboms
jogboms / README.md
Last active February 18, 2025 12:27
Flutter guild presentation - Demo examples
@sma
sma / terminal-flutter.md
Last active October 3, 2024 19:12
For fun, I wrote a Flutter-like framework for command line applications

Terminal Flutter

For fun, I recreated a subset of Flutter that is sufficient to build a tiny Minesweeper application for the terminal.

Here is how it looks:

+----------------------+
|Minesweeper       3/12|
| |
@sma
sma / _gui.md
Created November 29, 2021 14:14
A tutorial for Dart on how to create a GUI from scratch that runs in a HTML canvas

Canvas GUI

So you want to create a GUI from scratch using HTML canvas?

Colors

Let's start with an abstraction for ARGB color values:

class Color {