Skip to content

Instantly share code, notes, and snippets.

View theindianappguy's full-sized avatar
:octocat:
Working...

Sanskar Tiwari theindianappguy

:octocat:
Working...
View GitHub Profile
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'package:wallpaper/data/data.dart';
import 'package:wallpaper/models/photos_model.dart';
import 'package:wallpaper/widget/widget.dart';
class CategorieScreen extends StatefulWidget {
final String categorie;
import 'dart:io';
import 'dart:typed_data';
import 'dart:ui';
import 'package:cached_network_image/cached_network_image.dart';
import 'package:dio/dio.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:image_gallery_saver/image_gallery_saver.dart';
import 'package:permission_handler/permission_handler.dart';
@theindianappguy
theindianappguy / deploy.yml
Created June 17, 2020 12:59
Github Action WorkFlow to Auto Deploy Flutter Web App to Firebase Hosting and Github Pages.
# This is a basic workflow to help you get started with Actions
name: Build, Release app to Github Pages and Firebase Hosting
# name: Test, Build and Release apk
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- master
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/widgets.dart';
class UserProvider with ChangeNotifier {
User _user;
AuthMethods _authMethods = AuthMethods();
User get getUser => _user;
import 'dart:async';
import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
class RecipeView extends StatefulWidget {
final String postUrl;
RecipeView({@required this.postUrl});
import 'dart:convert';
import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'package:recipe_app/models/recipe_model.dart';
import 'package:recipe_app/views/recipe_view.dart';
import 'package:url_launcher/url_launcher.dart';
class Home extends StatefulWidget {
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:google_sign_in/google_sign_in.dart';
import 'package:realtime_chat/helperfun/sharedpref_helper.dart';
import 'package:realtime_chat/services/database.dart';
import 'package:realtime_chat/views/home.dart';
import 'package:shared_preferences/shared_preferences.dart';
class AuthMethods {
final FirebaseAuth auth = FirebaseAuth.instance;
import 'package:shared_preferences/shared_preferences.dart';
class SharedPreferenceHelper {
static String userIdKey = "USERIDKEY";
static String userNameKey = "USERNAMEKEY";
static String displayNameKey = "USERDISPLAYNAME";
static String userEmailKey = "USEREMAILKEY";
static String userProfilePicKey = "USERPROFILEKEY";
//save data
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 583, in _build_master
ws.require(__requires__)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 791, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (idna 3.2 (/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages), Requirement.parse('idna<3,>=2.5'), {'requests'})
During handling of the above exception, another exception occurred:
@theindianappguy
theindianappguy / Code.gs
Created June 27, 2021 07:31
Get Email Id By Subject
function onOpen() {
var Ui = SpreadsheetApp.getUi()
var menu = Ui.createAddonMenu()
.addItem("Get Message ID", "getMsgIds")
.addToUi()
}
function getMsgIds() {
var MsgSubject = Browser.inputBox("Enter the subject of the Email");
if (!MsgSubject) {
Browser.msgBox("oh oh, seems you forgot to provide the message subject, please try again. I\n\\n\\n\\n Thank you! \\n\\n Regards, l\n G")