project
ββββpackages
ββββui
ββββlib
β ββββshaders
β β ββββ shimmer.frag
β ββββsrc
β β ββββ shimmer.dart
β ββββui.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
| void Function() dispose = () {dispose = () {};}; | |
| void disposable(void Function() fn) { | |
| final $ = dispose; | |
| dispose = () { | |
| try { | |
| fn(); | |
| } finally { | |
| $(); | |
| } | |
| }; |
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
| /* | |
| * Deep copy of Map in Dart. | |
| * https://gist.github.com/PlugFox/d651661f465199195edd1c08834b04e8 | |
| * https://dartpad.dev?id=d651661f465199195edd1c08834b04e8 | |
| * Mike Matiunin <[email protected]>, 16 October 2025 | |
| */ | |
| import 'dart:convert' show JsonEncoder; | |
| extension type const CopyMap<K, V>._(Map<K, V> _source) implements Map<K, V> { |
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
| /* | |
| * Dots Loading Indicator | |
| * https://gist.github.com/PlugFox/e486dcaf99d958973a1f1b1cddea789b | |
| * https://dartpad.dev?id=e486dcaf99d958973a1f1b1cddea789b | |
| * Mike Matiunin <[email protected]>, 14 October 2025 | |
| */ | |
| // ignore_for_file: curly_braces_in_flow_control_structures | |
| import 'dart:typed_data'; |
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:typed_data' show Uint8List; | |
| import 'package:meta/meta.dart' show immutable; | |
| import 'drop_zone_stream_vm.dart' | |
| // ignore: uri_does_not_exist | |
| if (dart.library.js_interop) 'drop_zone_stream_js.dart'; | |
| /// {@template drop_zone_event} | |
| /// Events emitted by the [DropZone] stream. |
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 'package:flutter/gestures.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:localization/localization.dart'; | |
| /* | |
| * I consent to the processing of personal data, | |
| * the use of <c>cookies</c>, | |
| * agree to the <t>terms and conditions</t>, | |
| * and acknowledge the <p>privacy policy</p>. | |
| */ |
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 'package:doctorina/src/profile/model/profile_data_codecs.dart'; | |
| import 'package:flutter/foundation.dart'; | |
| typedef ProfileId = String; | |
| @immutable | |
| class Profile { | |
| const Profile({ | |
| required this.id, | |
| required this.name, |
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
| /* | |
| * Google Play and App Store logos | |
| * https://gist.github.com/PlugFox/ccc3d742a3c551bcb2ecb9b57a2bd34e | |
| * https://dartpad.dev?id=ccc3d742a3c551bcb2ecb9b57a2bd34e | |
| * Mike Matiunin <[email protected]>, 23 September 2025 | |
| */ | |
| // ignore_for_file: curly_braces_in_flow_control_structures | |
| import 'dart:async'; |
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
| final recorder = ui.PictureRecorder(); | |
| final canvas = Canvas(recorder); | |
| // ... | |
| final picture = recorder.endRecording(); | |
| final image = picture.toImage(outWidth, outHeight); |
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
| /* | |
| * Custom render object | |
| * https://gist.github.com/PlugFox/58b92cde63e137b0a88ce7666ff0ee88 | |
| * https://dartpad.dev?id=58b92cde63e137b0a88ce7666ff0ee88 | |
| * Mike Matiunin <[email protected]>, 24 June 2025 | |
| */ | |
| // ignore_for_file: cascade_invocations, unnecessary_overrides | |
| import 'dart:async'; |
NewerOlder