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: