Skip to content

Instantly share code, notes, and snippets.

View NITIN-ME's full-sized avatar
🌴
On vacation

Nitin Gandhi NITIN-ME

🌴
On vacation
  • Amazon
View GitHub Profile
class InvitePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.orange,
title: Center(
child: Text(
'Party Invite',
class Person extends StatelessWidget {
Person({this.name, this.cb, this.idx});
final String name;
final func cb;
final int idx;
class MyBody extends StatefulWidget {
@override
_MyBodyState createState() => _MyBodyState();
}
class _MyBodyState extends State<MyBody> {
void call(int index){
setState(() {
List<String> items = <String>[
'Adam',
'Eve',
'Robert',
'Taylor',
'Micheal',
'Rick',
'Morty',
'Ted',
'Marshall',
List<String> lst = List<String>();
class PartyInvite extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.orange,
actions: <Widget>[
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Party Invite',
name: party_invite
description: A new Flutter project.
version: 1.0.0+1
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
class ExponentialCurve extends StatefulWidget {
final List<charts.Series<DataPoint, int>> lst;
ExponentialCurve(this.lst);
@override
_ExponentialCurveState createState() => _ExponentialCurveState();
}
class _ExponentialCurveState extends State<ExponentialCurve> {
class MyChartBody extends StatelessWidget {
@override
Widget build(BuildContext context) {
final List<DataPoint> args = ModalRoute.of(context).settings.arguments;
var seriesList = [charts.Series<DataPoint, int>(
id: 'Sales',
colorFn: (_, __) => charts.MaterialPalette.blue.shadeDefault,
domainFn: (_,ind) => ind,
measureFn: (DataPoint dp, _) => dp.num,
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
import 'main.dart';
List<DataPoint> args;
class GraphPage extends StatelessWidget {
@override
Widget build(BuildContext context) {