Skip to content

Instantly share code, notes, and snippets.

View slightfoot's full-sized avatar
💙
Fluttering

Simon Lightfoot slightfoot

💙
Fluttering
View GitHub Profile
@slightfoot
slightfoot / main.dart
Created November 20, 2024 19:17 — forked from yeasin50/main.dart
3D listTIle
/// 3D tile wip
/// Fixme: proper tap/hover area
import 'dart:math';
import 'package:flutter/material.dart';
void main() {
runApp(
const MaterialApp(
@slightfoot
slightfoot / homepage.dart
Last active January 22, 2025 20:39 — forked from Slozzyondul/homepage.dart
Webpage Flutter Example / Code Review - by Simon Lightfoot :: #HumpdayQandA on 22nd January 2025 :: https://www.youtube.com/watch?v=Xyb2u5grptA
// MIT License
//
// Copyright (c) 2024 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@slightfoot
slightfoot / humpday_2025-02-26_soloman.dart
Last active February 26, 2025 20:31 — forked from Slozzyondul/screenTransition.dart
Wizard State Management - by Simon Lightfoot :: #HumpdayQandA on 26th February 2025 :: https://www.youtube.com/watch?v=wn_g2Z6RaZ8
// MIT License
//
// Copyright (c) 2025 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:

Stumbled upon this, the code at the bottom compiles, but there is no output, when I was thinking it might output something like >> list 123, 456

Was looking for a shorthand to

final cb = callback;
if (cb != null) {
  cb(['123','456']);
}
@slightfoot
slightfoot / main.dart
Last active July 16, 2025 17:19 — forked from austinstoker/main.dart
Zooming and reorderable list :: https://www.youtube.com/watch?v=92TileEhN3g
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class AppState {
AppState();
final zoomScale = ValueNotifier(1.0); // Initial zoom level
@slightfoot
slightfoot / humpday_2025-10-22_1.dart
Last active October 22, 2025 18:03 — forked from jamilsaadeh97/main.dart
Bottom sheet with text fields - by Jamil Saadeh & Simon Lightfoot :: #HumpdayQandA on 22nd October 2025 :: https://www.youtube.com/watch?v=NJE_v43Drug
// MIT License
//
// Copyright (c) 2025 Jamil Saadeh & Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@slightfoot
slightfoot / humpday_2025-10-29_1.dart
Last active November 5, 2025 20:41 — forked from callmephil/thanos_snap.dart
Thanos Disintegrate Animation - by Phil & Simon Lightfoot :: #HumpdayQandA on 5th November 2025 :: https://www.youtube.com/watch?v=uNb9L5JbfIc
// MIT License
//
// Copyright (c) 2025 Phil(@callmephil) & Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@slightfoot
slightfoot / humpday_2026-01-07_1.dart
Last active January 7, 2026 20:00 — forked from saltedpotatos/autocomplete_form.dart
Autocomplete Lists :: HumpdayQandA on 7th January 2026 :: https://www.youtube.com/watch?v=dD-nfl1FY_o
//Hello FlutterCommunity, long time lurker, first time gist-er
//
//I've been creating a budgeting app and have these combo boxes that
//I can either select an existing account or create a new one.
//
//However, I've been struggling to make keyboard navigation through this form buttery smooth
//
//Adding 100 accounts and trying to navigate by keyboard through the form is not a great experience.
// - hit the down arrow to open the options list and then hit the up arrow to navigate up from the bottom
//