Skip to content

Instantly share code, notes, and snippets.

View abdullahalamodi's full-sized avatar
💙
flutter time

Abdullah Alamodi abdullahalamodi

💙
flutter time
  • اليمن حضرموت
View GitHub Profile
@abdullahalamodi
abdullahalamodi / test_it.dart
Last active June 19, 2024 23:23
restorable custom class
class TestIt extends StatefulWidget {
const TestIt({super.key});
@override
State<TestIt> createState() => _TestItState();
}
class _TestItState extends State<TestIt> with RestorationMixin {
@override
Widget build(BuildContext context) {
@abdullahalamodi
abdullahalamodi / humpday_2024-06-12_2.dart
Created June 12, 2024 21:31 — forked from slightfoot/humpday_2024-06-12_2.dart
Custom Multi Child Layouts - by Simon Lightfoot - Humpday Q&A :: 12th June 2024 #Flutter #Dart - https://www.youtube.com/watch?v=QBmqKvw_0s8
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() => runApp(const ExampleApp());
class ExampleApp extends StatelessWidget {
const ExampleApp({super.key});
@override
Widget build(BuildContext context) {
@abdullahalamodi
abdullahalamodi / humpday_2024-06-12_1.dart
Created June 12, 2024 21:29 — forked from slightfoot/humpday_2024-06-12_1.dart
Force Intrinsics - by Simon Lightfoot - Humpday Q&A :: 12th June 2024 #Flutter #Dart - https://www.youtube.com/watch?v=QBmqKvw_0s8
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() => runApp(const ExampleApp());
class ExampleApp extends StatelessWidget {
const ExampleApp({super.key});
@override
Widget build(BuildContext context) {
@abdullahalamodi
abdullahalamodi / google_drive_services.dart
Created August 14, 2022 08:22
upload, download and show files from google drive
import 'dart:developer';
import 'dart:io';
import 'package:google_sign_in/google_sign_in.dart';
import 'package:googleapis/drive/v3.dart' as g_drive;
import 'package:http/http.dart' as http;
import 'package:path_provider/path_provider.dart';
class GoogleAuthClient extends http.BaseClient {
final Map<String, String> _headers;
@abdullahalamodi
abdullahalamodi / settings.json
Last active September 8, 2022 21:34 — forked from gaetschwartz/settings.json
Nest files in Flutter projects on VSCode, inspired from https://github.com/antfu/vscode-file-nesting-config
".....": "You other settings",
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.expand": false,
"explorer.fileNesting.patterns": {
"pubspec.yaml": ".flutter-plugins, .packages, .dart_tool, .flutter-plugins-dependencies, .metadata, .packages, pubspec.lock, build.yaml, analysis_options.yaml, pubspec_overrides.yaml, all_lint_rules.yaml",
".gitignore": ".gitattributes, .gitmodules, .gitmessage, .mailmap, .git-blame*",
"readme.*": "authors, backers.md, changelog*, citation*, code_of_conduct.md, codeowners, contributing.md, contributors, copying, credits, governance.md, history.md, license*, maintainers, readme*, security.md, sponsors.md",
"*.dart": "$(capture).g.dart, $(capture).freezed.dart",
},
"........": "You other settings",
@abdullahalamodi
abdullahalamodi / settings.json
Last active March 9, 2022 08:44 — forked from gaetschwartz/settings.json
Nest files in Flutter projects on VSCode, inspired from https://github.com/antfu/vscode-file-nesting-config
"explorer.experimental.fileNesting.enabled": true,
"explorer.experimental.fileNesting.expand": false,
"explorer.experimental.fileNesting.patterns": {
"pubspec.yaml": ".flutter-plugins, .packages, .dart_tool, .flutter-plugins-dependencies, .metadata, .packages, pubspec.lock, build.yaml, analysis_options.yaml, all_lint_rules.yaml, flutter_native_splash.yaml",
".gitignore": ".gitattributes, .gitmodules, .gitmessage, .mailmap, .git-blame*",
"readme.*": "authors, backers.md, changelog*, citation*, code_of_conduct.md, codeowners, contributing.md, contributors, copying, credits, governance.md, history.md, license*, maintainers, readme*, security.md, sponsors.md",
"*.dart": "$(capture).g.dart, $(capture).freezed.dart",
},