Skip to content

Instantly share code, notes, and snippets.

View adityadroid's full-sized avatar
🎯
Fluttering around.

Aditya Gurjar adityadroid

🎯
Fluttering around.
View GitHub Profile
@adityadroid
adityadroid / flutter_extension_methods.dart
Created June 28, 2023 07:31 — forked from SashaKryzh/flutter_extension_methods.dart
List of my favorite extension methods in Flutter.
import 'package:flutter/material.dart';
extension BuildContextExtensions on BuildContext {
ThemeData get theme => Theme.of(this);
TextTheme get textTheme => theme.textTheme;
ColorScheme get colorScheme => theme.colorScheme;
DefaultTextStyle get defaultTextStyle => DefaultTextStyle.of(this);
@adityadroid
adityadroid / database.rules.json
Created August 29, 2019 11:19 — forked from codediodeio/database.rules.json
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}