Skip to content

Instantly share code, notes, and snippets.

View bryantwilliam's full-sized avatar

W bryantwilliam

  • 08:20 (UTC +08:00)
View GitHub Profile
@Schwusch
Schwusch / selection_transformer.dart
Last active January 5, 2025 15:31 — forked from schultek/selection_transformer.dart
A widget that transforms the text selection when copied.
import 'package:collection/collection.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
typedef SelectionTransform = String Function(Iterable<String>);
/// A widget that transforms the text selection when copied.
///
/// This uses the [SelectionContainer] with a custom [SelectionContainerDelegate] to override the
/// [getSelectedContent] method with a custom implementation.
@schultek
schultek / selection_transformer.dart
Last active December 13, 2024 10:19
A widget that transforms the text selection when copied.
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
typedef SelectionTransform = String Function(Iterable<String>);
/// A widget that transforms the text selection when copied.
///
/// This uses the [SelectionContainer] with a custom [SelectionContainerDelegate] to override the
/// [getSelectedContent] method with a custom implementation.
///
@ShaharHD
ShaharHD / settings.json
Created September 16, 2019 14:15
todo tree config
"todo-tree.general.tags": ["FIXME:", "HOTFIX:", "INFO:", "NOTICE:", "TODO:"],
"todo-tree.highlights.customHighlight": {
"FIXME:": {
"foreground": "red",
"background": "grey",
"icon": "bell"
},
"HOTFIX:": {
"foreground": "purple",
"background": "white",