Skip to content

Instantly share code, notes, and snippets.

@manujbahl
manujbahl / horizontallist
Created Apr 13, 2018
HorizontalFeaturedItems
View horizontallist
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:meta/meta.dart';
final colorBackground = const Color(0xFFF3F4F7);
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
@manujbahl
manujbahl / animateScale.dart
Last active Apr 21, 2018
animateScale.dart
View animateScale.dart
import 'dart:async';
import 'package:flutter/material.dart';
enum AnimationOptions { None, Transform }
void main() {
var app = new Scaffold(
body:new AnimationDemo()
);
View animatePerspective.dart
import 'dart:async';
import 'package:flutter/material.dart';
enum AnimationOptions { None, Transform }
void main() {
var app = new Scaffold(
body:new AnimationDemo()
);
View textfield.dart
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
View column.dart
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
View flexlayout.dart
import 'package:flutter/material.dart';
void main() {
runApp(new AnimatedListSample());
}
class AnimatedListSample extends StatelessWidget{
final GlobalKey<AnimatedListState> _listKey =
new GlobalKey<AnimatedListState>();
View future.dart
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(
View inkwellsample.dart
import 'package:flutter/material.dart';
main() {
runApp(new TestSample());
}
class TestSample extends StatelessWidget{
@override
Widget build(BuildContext context) {
var widget = new MaterialApp(
@manujbahl
manujbahl / textfield.dart
Created Jul 16, 2018
TextField formatter
View textfield.dart
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
main() {
runApp(new Home());
}
class MyFormatter extends TextInputFormatter {
MyFormatter();
View animatedlist.dart
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';
main() {
runApp(new TestSample());
}
class TestSample extends StatelessWidget{
@override
Widget build(BuildContext context) {