๐
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/material.dart'; | |
class ErrorPopup { | |
static void open(BuildContext context, String title, String description, | |
{bool isCancelable = false, | |
Function? onOk, | |
Function? onCancel, | |
String okText = 'OK', | |
String cancelText = 'Cancel'}) { |
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:io'; | |
/// Singleton Generator Script | |
/// | |
/// This script generates a singleton class file based on the provided class name | |
/// from the command line. The generated class follows the singleton pattern and | |
/// includes basic usage examples in the comments above the generated code. | |
/// | |
/// Usage: |
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
@echo off | |
setlocal | |
:: Compact ASCII-style entrance screen | |
echo ______ _ | |
echo | ____| | | | |
echo | |__ __ __ ___ _ __ | |_ | |
echo | __| \ \ / / / _ \ | '_ \ | __| | |
echo | |____ \ V / | __/ | | | | | |_ | |
echo |______| \_/ \___| |_| |_| \__| |
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 os | |
import re | |
# Path to your project directory | |
project_path = "F:/projects/EventGallery/event_gallery" | |
# Patterns to search for button/gesture handlers | |
patterns = [ | |
r"onPressed:\s*\(\s*\)\s*{", # Matches onPressed: () { ... } | |
r"onTap:\s*\(\s*\)\s*{", # Matches onTap: () { ... } |
OlderNewer