Skip to content

Instantly share code, notes, and snippets.

View aqibgatoo's full-sized avatar

Aqib Gatoo aqibgatoo

View GitHub Profile
@aqibgatoo
aqibgatoo / main.dart
Last active April 26, 2021 04:52
Main file with complete code
import 'package:flutter/material.dart';
import 'package:drupal_linkset_menu/drupal_linkset_menu.dart';
import 'package:url_launcher/url_launcher.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@aqibgatoo
aqibgatoo / main.dart
Created April 22, 2021 11:37
Main file
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: Scaffold(
@aqibgatoo
aqibgatoo / package.yml
Last active April 26, 2021 15:09
Yaml File
name: example
description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: "none" # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
@aqibgatoo
aqibgatoo / linkset.json
Created April 22, 2021 11:16
Drupal Menu Api Response
{
"linkset": [
{
"anchor": "/system/menu/main/linkset",
"item": [
{
"href": "/",
"title": "Home",
"drupal-menu-hierarchy": [
".000"
child: DropdownButtonHideUnderline(
child: StreamBuilder<List<Country>>(
initialData: [],
stream: bloc.countries,
builder: (context, countriesSnapshot) {
return StreamBuilder<Country>(
stream: bloc.country,
builder: (context, snapshot) {
return countriesSnapshot.hasData ? DropdownButton<Country>(
onChanged: bloc.setCountry,
return Scaffold(
body: Stack(
children: <Widget>[
Align(
alignment: Alignment(0.4, -0.6),
child: Container(
padding: EdgeInsets.symmetric(horizontal: 40.0),
child: TextField(
autofocus: true,
onChanged: (str) {},
// main.dart
void main() {
runApp(
BlocProvider<HomeBloc>(
baloc: HomeBloc(),
child: MyApp(),
),
);
}
//app.dart
(function (history, trackingId, options) {
const getParameterByName = (paramName) => {
var searchString = window.location.search.substring(1),
i, val, params = searchString.split("&");
for (i=0;i<params.length;i++) {
val = params[i].split("=");
if (val[0] == paramName) {
return val[1] || undefined;
}
}
@aqibgatoo
aqibgatoo / privaypolicy.md
Created September 28, 2018 03:14
Privacy Policy for JK Holiday Calendar

Privacy Policy

Aqib Gatoo built the JK Holiday Calendar app as an Ad Supported app. This SERVICE is provided by Aqib Gatoo at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at JK Holiday Calendar unless otherwise defined in this Privacy Policy.

@aqibgatoo
aqibgatoo / 1.cs
Created August 31, 2016 05:56 — forked from cuppster/1.cs
Promises for C# using Generics
/*
modified from original source: https://bitbucket.org/mattkotsenas/c-promises/overview
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Promises