Skip to content

Instantly share code, notes, and snippets.

View IshanFx's full-sized avatar
🏆
Focusing

Ishan Fernando IshanFx

🏆
Focusing
View GitHub Profile
@IshanFx
IshanFx / carousel.dart
Created October 30, 2021 13:34
Flutter Carousel
@IshanFx
IshanFx / BottomSheetCustom.dart
Created May 27, 2019 04:39
BottomSheet Full Height
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter/material.dart';
const Duration _kBottomSheetDuration = Duration(milliseconds: 200);
const double _kMinFlingVelocity = 700.0;
const double _kCloseProgressThreshold = 0.5;
@IshanFx
IshanFx / tindercard.dart
Created February 19, 2019 11:07
Flutter Swipe Remove card(Tinder Like)
import 'package:flutter/material.dart';
import 'MatchCard.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
@IshanFx
IshanFx / ViewController.swift
Created February 11, 2019 01:37
iostableview
import UIKit
class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
@IBOutlet weak var tableView: UITableView!
let fruits = ["mango","orange"]
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
@IshanFx
IshanFx / stackofcards.dart
Created February 10, 2019 13:41
Flutter Stack of cards
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
@IshanFx
IshanFx / snackbarflutter.dart
Created January 8, 2019 15:45
Snackbar in flutter
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Snackbar',
theme: ThemeData(
@IshanFx
IshanFx / Herosecondpage.dart
Last active January 3, 2019 15:55
Hero animation second page
import 'package:flutter/material.dart';
class Second extends StatelessWidget{
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Second Screen"),
),
@IshanFx
IshanFx / herofirstpage.dart
Created January 3, 2019 15:52
Hero Animation first page
import 'package:flutter/material.dart';
import 'Second.dart';
void main() => runApp(FlutterAni());
class FlutterAni extends StatelessWidget{
@override
Widget build(BuildContext context) {
// TODO: implement build
@IshanFx
IshanFx / rhinoscript.java
Last active December 16, 2018 07:48
Rhino JS executer for android
public static String runScript(Context androidContextObject) {
// Get the JavaScript in previous section
try {
Resources resources = androidContextObject.getResources();
InputStream rawResource = resources.openRawResource(R.raw.config);
Properties properties = new Properties();
properties.load(rawResource);
@IshanFx
IshanFx / bottomsheet.dart
Last active November 11, 2018 06:59
Flutter bottom sheet
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',