π¦
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Show dialogs from unmounted context | |
| * https://gist.github.com/PlugFox/f8f63c1ab3a63e49085b356281887435 | |
| * https://dartpad.dev?id=f8f63c1ab3a63e49085b356281887435 | |
| * Mike Matiunin <[email protected]>, 19 December 2025 | |
| */ | |
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Swipeable controller demo. | |
| * https://gist.github.com/PlugFox/39c051d807efb04759498033ce8452dc | |
| * https://dartpad.dev?id=39c051d807efb04759498033ce8452dc | |
| * Mike Matiunin <[email protected]>, 09 December 2025 | |
| */ | |
| import 'dart:async'; | |
| import 'dart:math' as math; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[cfg(target_os = "windows")] | |
| use windows::Win32::Foundation::{COLORREF, HINSTANCE, HWND, LPARAM, LRESULT, RECT, WPARAM}; | |
| #[cfg(target_os = "windows")] | |
| use windows::Win32::Graphics::Dwm::DwmFlush; | |
| #[cfg(target_os = "windows")] | |
| use windows::Win32::Graphics::Gdi::HGDIOBJ; | |
| #[cfg(target_os = "windows")] | |
| use windows::Win32::Graphics::Gdi::*; | |
| #[cfg(target_os = "windows")] | |
| use windows::Win32::System::LibraryLoader::GetModuleHandleW; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "transparent_overlay" | |
| version = "0.1.1" | |
| edition = "2021" | |
| [dependencies] | |
| windows = { version = "0.58", features = [ | |
| "Win32_Foundation", | |
| "Win32_Graphics_Gdi", | |
| "Win32_UI_WindowsAndMessaging", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:async'; | |
| void main() => gen().take(7).forEach(print); | |
| Stream<String> gen() { | |
| final controller = StreamController<String>(); | |
| void onCancel(void Function() fn) { | |
| var temp = controller.onCancel ?? () {}; | |
| controller.onCancel = () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * InkyIcon widget. | |
| * https://gist.github.com/PlugFox/097c35feb4cc3da7a4bce2d902b3a75b | |
| * https://dartpad.dev?id=097c35feb4cc3da7a4bce2d902b3a75b | |
| * Mike Matiunin <[email protected]>, 19 November 2025 | |
| */ | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/services.dart'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Superellipse Input Border for Flutter | |
| * https://gist.github.com/PlugFox/73fdd4f3d366a8f3e8662768226af36f | |
| * https://dartpad.dev?id=73fdd4f3d366a8f3e8662768226af36f | |
| * Mike Matiunin <[email protected]>, 19 November 2025 | |
| */ | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // dart run bin/make_pdf.dart | |
| import 'dart:io'; | |
| import 'dart:typed_data'; | |
| void main() async { | |
| final pdf = _PdfBuilder(); | |
| // Register built-in Type1 fonts (Base-14): Helvetica & Helvetica-Bold | |
| final fontRegular = pdf.addRawObject( | |
| '<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >>', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ignore_for_file: avoid_print | |
| import 'dart:ffi' as ffi; | |
| import 'package:benchmark_harness/benchmark_harness.dart'; | |
| import 'package:ffi/ffi.dart'; | |
| // ============================================================================ | |
| // Pure Dart LinkedList Implementation | |
| // ============================================================================ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void Function() dispose = () {dispose = () {};}; | |
| void disposable(void Function() fn) { | |
| final $ = dispose; | |
| dispose = () { | |
| try { | |
| fn(); | |
| } finally { | |
| $(); | |
| } | |
| }; |
NewerOlder