Skip to content

Instantly share code, notes, and snippets.

@BrainBear
BrainBear / custom-postfix-completion-settings.json
Last active July 9, 2025 08:41
custom postfix completion settings
{
"custom-postfix-completion": {
"languageTemplates": {
"dart": {
"templates": [
{
"triggerWord": "if",
"description": "If condition",
"targetRegExp": "\\w+",
"body": ["if(${target}) {\n ${CODE#0}\n}"]
import 'package:flutter/scheduler.dart';
import 'package:flutter/widgets.dart';
/// A widget that listens for size changes of its child and notifies its
/// listeners when the size changes.
///
/// This widget is useful when you need to perform some actions or update
/// the UI based on the size changes of a specific widget.
///
/// Example usage: