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: () { ... } |
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 '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
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 'package:ansi_styles/ansi_styles.dart'; | |
//*** Enums ***// | |
/// This enum is used to define the log level | |
/// It has four values: debug, error, warning, info | |
enum LogLevel { | |
info, | |
debug, | |
warning, |
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
/// Feature Generator Script | |
/// | |
/// This script generates a feature folder structure for a Flutter project. | |
/// It creates the necessary folders and files based on the provided feature name | |
/// and optional components (screens and widgets). If no components are specified, | |
/// it generates the entire structure. | |
/// | |
/// Usage: | |
/// | |
/// To generate the entire feature structure: |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>404 Not Found</title> | |
<style> | |
body { | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; |
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'; | |
import 'dart:typed_data'; | |
import 'package:file_picker/file_picker.dart'; | |
import 'firebase_storage_manager.dart'; | |
class SmartImageUploader { |
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
extension MapsExtension on Map { | |
void printAll() { | |
this.forEach((key, value) { | |
print('Key: $key Value: $value'); | |
}); | |
} | |
String printAllKeys() { |
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'; | |
import 'package:firebase_storage/firebase_storage.dart' as fbStorage; | |
import 'package:flutter/foundation.dart'; | |
class FirebaseStorageManager { | |
static final FirebaseStorageManager _instance = FirebaseStorageManager._(); | |
factory FirebaseStorageManager() { | |
return _instance; |
NewerOlder