Skip to content

Instantly share code, notes, and snippets.

View burhanrashid52's full-sized avatar
🎵
Every day, Every hour, Turn pain into power.

Burhanuddin Rashid burhanrashid52

🎵
Every day, Every hour, Turn pain into power.
View GitHub Profile
// Name: Create Apple Note
// Shortcut: command option control a
import "@johnlindquist/kit"
import * as applescript from 'applescript';
function createAppleNoteScript(content: string) {
const title = 'Note created on ' + new Date().toLocaleDateString();
return `
@burhanrashid52
burhanrashid52 / main.dart
Last active May 7, 2023 10:02
ListenableBuilder Example
//Run from flutter version 3.10. Try beta or master channel
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@burhanrashid52
burhanrashid52 / main.dart
Created March 20, 2023 06:40
ExpansionTile Customizations Example
import 'package:flutter/material.dart';
void main() {
runApp(
const MaterialApp(
home: HomePage(),
),
);
}
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# export PATH=/Applications/Android\ Studio.app/Contents/jre/jdk/Contents/Home/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/burhanuddinrashid/.oh-my-zsh"
# Sdk Path
import 'package:flutter/material.dart';
import 'package:scoped_model/scoped_model.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ScopedModel<CounterModel>(
model: CounterModel(),
import 'dart:async';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
import 'dart:async';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => new _MyAppState();
}
class _MyAppState extends State<MyApp> {
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => new _MyAppState();
}