Skip to content

Instantly share code, notes, and snippets.

@manujbahl
manujbahl / package.json
Created July 14, 2019 16:58
package file
{
"name": "Apptivate Base packages",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"aws-amplify": "^1.1.26",
@manujbahl
manujbahl / animatedlist.dart
Created July 25, 2018 00:55
Animated List
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';
main() {
runApp(new TestSample());
}
class TestSample extends StatelessWidget{
@override
Widget build(BuildContext context) {
@manujbahl
manujbahl / textfield.dart
Created July 16, 2018 21:18
TextField formatter
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
main() {
runApp(new Home());
}
class MyFormatter extends TextInputFormatter {
MyFormatter();
@manujbahl
manujbahl / inkwellsample.dart
Created June 27, 2018 05:33
InkWell samples
import 'package:flutter/material.dart';
main() {
runApp(new TestSample());
}
class TestSample extends StatelessWidget{
@override
Widget build(BuildContext context) {
var widget = new MaterialApp(
@manujbahl
manujbahl / future.dart
Created June 15, 2018 03:28
FutureBuilder
import 'package:flutter/material.dart';
main() {
runApp(new TestSample());
}
class TestSample extends StatelessWidget{
@override
Widget build(BuildContext context) {
var widget = new MaterialApp(
home: new Scaffold(
@manujbahl
manujbahl / flexlayout.dart
Created June 8, 2018 23:00
Flex layout issues.
import 'package:flutter/material.dart';
void main() {
runApp(new AnimatedListSample());
}
class AnimatedListSample extends StatelessWidget{
final GlobalKey<AnimatedListState> _listKey =
new GlobalKey<AnimatedListState>();
@manujbahl
manujbahl / column.dart
Created May 25, 2018 18:23
Column Isuue
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@manujbahl
manujbahl / animatePerspective.dart
Last active April 30, 2018 18:03
animatePerspective
import 'dart:async';
import 'package:flutter/material.dart';
enum AnimationOptions { None, Transform }
void main() {
var app = new Scaffold(
body:new AnimationDemo()
);
@manujbahl
manujbahl / animateScale.dart
Last active April 21, 2018 17:13
animateScale.dart
import 'dart:async';
import 'package:flutter/material.dart';
enum AnimationOptions { None, Transform }
void main() {
var app = new Scaffold(
body:new AnimationDemo()
);