Skip to content

Instantly share code, notes, and snippets.

View vijaybheda's full-sized avatar
πŸ–₯️
Working from Office

Vijay Bheda vijaybheda

πŸ–₯️
Working from Office
View GitHub Profile
@vijaybheda
vijaybheda / build_release.sh
Last active July 19, 2026 04:21
Production-ready CLI scripts to automate, validate, and accelerate your Flutter build and App Store/Google Play deployment pipeline.
#!/bin/bash
# ========================= TERMINAL UI CONFIG =========================
NC='\033[0m'
BOLD='\033[1m'
DIM='\033[2m'
ITALIC='\033[3m'
CYAN='\033[38;5;45m'
GREEN='\033[38;5;84m'
YELLOW='\033[38;5;221m'
// Action: Update App.tsx to call window.sendToFlutter in key places:
`import { useEffect, useState } from 'react';
import { RetellWebClient } from 'retell-client-js-sdk';
const retellWebClient = new RetellWebClient();
const App = () => {
const [isCalling, setIsCalling] = useState(false);
@vijaybheda
vijaybheda / java_troubleshooting_guide.md
Created September 11, 2025 06:49
Java Version Management Guide for Flutter/Android Projects

Java Version Management Guide for Flutter/Android Projects

Context Information

This document provides AI assistants with comprehensive information to troubleshoot Java version issues in Flutter and Android development environments.

Common Java Version Errors

Error Signatures to Look For:

  • Unsupported class file major version XX
  • java.lang.UnsupportedClassVersionError
@vijaybheda
vijaybheda / bloc_code_rules.mdc
Created August 13, 2025 06:05
Cursor AI rules for Flutter app development using BLoC State management: Enforces layered architecture, strict branding/UI theming, and secure financial functionality.
---
description: Advanced Flutter App with BLoC State Management
globs:
- "**/*.dart"
alwaysApply: true
---
You are an expert in Flutter, Dart (basics and advanced: lists, collections, lambdas, functional programming, isolates, async/await), BLoC state management (Bloc, Cubit, events, states, BlocBuilder, BlocListener, BlocConsumer, BlocSelector, BlocObserver), dependency injection (BlocProvider, RepositoryProvider, MultiBlocProvider), routing (Navigator, go_router with BLoC integration), widget lifecycle, layouts, rendering pipeline, keys, animations (Animation Controller, Animated Builder, Animated Widget, Curved Animation, Hero, Opacity), networking (dio/http for REST, WebSockets, GraphQL, JSON serialization), persistence (SQLite, Shared Preferences), Firebase (Authentication, Firestore, Storage, Push Notifications, Remote Config, Cloud Functions, Analytics), testing (unit, widget, integration, TDD, BDD with bloc_test), CI/CD, analytics (Firebase Analytics, Google Analytics), deployment, Equatable, seale
@vijaybheda
vijaybheda / app.mdc
Created August 12, 2025 04:00
Cursor AI rules for Flutter app development: Enforces layered architecture, strict branding/UI theming, and secure financial functionality.
---
description: A New Flutter App
globs:
- "**/*.dart"
alwaysApply: false
---
You are an expert in Flutter, Dart, Very Good Ventures & Google News Toolkit layered architecture, BLoC/Cubit state-management, Equatable, sealed patterns, build_runner, financial/stock APIs integration, and Cursor AI.
────────────────────────────────────────
πŸ”· ARCHITECTURE & LAYER RULES
@vijaybheda
vijaybheda / main.dart
Created February 11, 2023 09:17
Dart stopwatch
import 'dart:async';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@vijaybheda
vijaybheda / main.dart
Last active January 5, 2023 07:36
Battuta simultaneously API requests test
import 'dart:async';
import 'dart:html';
int requestCount = 1300;
void main() {
for (int i = 0; i <= requestCount; i++) {
Future.delayed(Duration(milliseconds: 800)).then((value) =>makeRequest(i));
}
}
@vijaybheda
vijaybheda / tips.txt
Last active October 7, 2022 20:25
πŸ¦„ #Visual #Studio #Code tip
πŸ¦„ #Visual #Studio #Code tip: find all #hardcoded #strings in your #Flutter project
using this handy #regex πŸš€ Change the
(?<!import )'(.*?)' to (?<!import )"(.*?)"
to find strings with double-quotes around! πŸ”₯
@vijaybheda
vijaybheda / readme.md
Created June 20, 2022 06:46
In-App Subscriptions Roadmap

This error may be caused by several reasons.

Here is the list of requirements for the Google IAB testing.

Prerequisites:

  1. AndroidManifest must include "com.android.vending.BILLING" permission.
  2. APK is built in release mode.
@vijaybheda
vijaybheda / math_utils.dart
Created February 13, 2022 08:17
Dart - get Responsive Size for all UI
import 'package:flutter/material.dart';
import 'package:get/get.dart';
double getSize(double px) {
return px * ((MediaQuery.of(Get.context!).size.width) / 375);
}