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 / dialog_carousel.dart
Created October 2, 2024 18:50
Dialog Carousel - by Simon Lightfoot - Humpday Q&A :: 2nd October 2024 #Flutter #Dart - https://www.youtube.com/watch?v=RX6cS7TdIy0
@slightfoot
slightfoot / pie_progress_indicator.dart
Created September 25, 2024 19:52
Pie Progress Indicator :: by Simon Lightfoot - Humpday Q&A/AMA 25th September 2024 :: https://www.youtube.com/watch?v=QiLPSsD9kRc
import 'dart:math' as math;
import 'dart:ui';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const ExampleApp());
}
@slightfoot
slightfoot / win32_window.cpp
Created September 25, 2024 18:19
Flutter Windows Desktop - Client Area Adjustment :: by Simon Lightfoot - 25th September 2024 :: https://www.youtube.com/watch?v=QiLPSsD9kRc
bool Win32Window::Create(const std::wstring& title,
const Point& origin,
const Size& size) {
Destroy();
const wchar_t* window_class =
WindowClassRegistrar::GetInstance()->GetWindowClass();
const POINT target_point = {static_cast<LONG>(origin.x),
static_cast<LONG>(origin.y)};
@slightfoot
slightfoot / humpday_2024-09-11_1.dart
Created September 11, 2024 17:45
Max Cross Axis Wrap Example - by Simon Lightfoot - Humpday Q&A :: 11th September 2024 #Flutter #Dart - https://www.youtube.com/watch?v=LbpboHb49PM
import 'package:flutter/material.dart';
void main() {
runApp(const WrapApp());
}
class WrapApp extends StatelessWidget {
const WrapApp({super.key});
@override
@slightfoot
slightfoot / humpday_2024-08-28_1.dart
Last active April 2, 2025 17:07
Animated Scrolling Custom Bottom Sheet - by Simon Lightfoot - Humpday Q&A :: 28th August 2024 #Flutter #Dart https://www.youtube.com/watch?v=AibrECd4gpg
// 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_2024-07-24_1.dart
Created July 24, 2024 18:11
Circular List - by Simon Lightfoot - Humpday Q&A :: 26th June 2024 #Flutter #Dart https://www.youtube.com/watch?v=mMv9wRcKZrw
// 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_2024-06-26_1.dart
Created June 26, 2024 19:33
Search Box Overlays - by Simon Lightfoot - Humpday Q&A :: 26th June 2024 #Flutter #Dart https://www.youtube.com/watch?v=X0bin1qozYg
// 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 / drag_scroll_behaviour.dart
Created June 19, 2024 17:13
Drag Scroll Behaviour
// 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_2024-06-12_2.dart
Created June 12, 2024 18:45
Custom Multi Child Layouts - by Simon Lightfoot - Humpday Q&A :: 12th June 2024 #Flutter #Dart - https://www.youtube.com/watch?v=QBmqKvw_0s8
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() => runApp(const ExampleApp());
class ExampleApp extends StatelessWidget {
const ExampleApp({super.key});
@override
Widget build(BuildContext context) {
@slightfoot
slightfoot / humpday_2024-06-12_1.dart
Last active June 12, 2024 21:29 — forked from austinstoker/main.dart
Force Intrinsics - by Simon Lightfoot - Humpday Q&A :: 12th June 2024 #Flutter #Dart - https://www.youtube.com/watch?v=QBmqKvw_0s8
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() => runApp(const ExampleApp());
class ExampleApp extends StatelessWidget {
const ExampleApp({super.key});
@override
Widget build(BuildContext context) {