Skip to content

Instantly share code, notes, and snippets.

View Mastersam07's full-sized avatar
πŸš€
building amazing things

Samuel Abada Mastersam07

πŸš€
building amazing things
View GitHub Profile
@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.

@passsy
passsy / main.dart
Created December 2, 2021 13:59
Example of a stacked card list in flutter using Slivers
import 'dart:math';
import 'package:flutter/material.dart';
void main() {
runApp(Kata());
}
class Kata extends StatelessWidget {
@override
@Nkwachi-N
Nkwachi-N / gist:f0bd736d55a513f99a0f0033588a0e7c
Created December 21, 2020 08:10
Youtube Music bottom Sheet Animation Recreation.
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:rubber/rubber.dart';
class MenuPage extends StatefulWidget {
MenuPage({Key key}) : super(key: key);
@override
_MenuPageState createState() => _MenuPageState();
}
@Mastersam07
Mastersam07 / gist:30b81f2666e308d33c6443139f06bdf6
Created May 29, 2020 03:16 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@bostrot
bostrot / CustomShowDialog.dart
Last active October 25, 2022 09:25
showDialog with rounded corners
// Copyright 2015 The Chromium Authors. 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:async';
import 'dart:ui';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';