Skip to content

Instantly share code, notes, and snippets.

View Abhilash-Chandran's full-sized avatar
👋
Hi

Abhilash Chandran Abhilash-Chandran

👋
Hi
View GitHub Profile
@Abhilash-Chandran
Abhilash-Chandran / main.dart
Last active August 29, 2022 07:56
Tab View inside PageView.
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) => MaterialApp(
title: 'TabBarView inside PageView',
home: MyHomePage(),
@Abhilash-Chandran
Abhilash-Chandran / main.dart
Created March 21, 2020 11:28
Adjust height on long press.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Text Field Focus',
home: ListView(
@Abhilash-Chandran
Abhilash-Chandran / main.dart
Last active March 21, 2020 11:37
Adjust height on long press.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
final List<MeetingCard> _meetingCards = [
MeetingCard(title: 'standup meeitng'),
MeetingCard(title: 'weekely meeting'),
MeetingCard(title: 'Status Meeting'),
MeetingCard(title: 'Another meeting'),
@Abhilash-Chandran
Abhilash-Chandran / main.dart
Created March 22, 2020 14:17
NestedMenu Flutter
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
debugShowCheckedModeBanner: false,
@Abhilash-Chandran
Abhilash-Chandran / main.dart
Last active March 26, 2020 17:26
scrollable form in flutter
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
@Abhilash-Chandran
Abhilash-Chandran / main.dart
Last active August 30, 2020 08:06
smooth scrolling for pageview
/// [https://github.com/flutter/flutter/issues/35687]
import 'package:flutter/material.dart';
import 'package:flutter/gestures.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key key}) : super(key: key);
@Abhilash-Chandran
Abhilash-Chandran / main.dart
Last active January 5, 2021 10:07
Ink widget decoration visible or/and renders outside the ListView boundary up to the cacheExtent.
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@Abhilash-Chandran
Abhilash-Chandran / main.dart
Created January 12, 2021 17:21
FlutterStepper with ListView content.
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => new _MyAppState();
}
@Abhilash-Chandran
Abhilash-Chandran / dashbaoard.py
Last active March 4, 2021 18:16
A demo for dynamic call back in Dash plotly setting information on button id.
import typing as t
import numpy as np
import json
import dash_core_components as dcc
import dash_html_components as html
import dash_bootstrap_components as dbc
import dash.dependencies as ddd
import plotly.express as px
@Abhilash-Chandran
Abhilash-Chandran / main.dart
Last active April 14, 2021 10:33
ScrollableView
import 'package:flutter/material.dart';
// import 'blocks/block1.dart';
// import 'blocks/block2.dart';
// import 'blocks/block3.dart';
// import 'blocks/block4.dart';
void main() {
runApp(ScrollableView());
}