This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class InvitePage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
backgroundColor: Colors.orange, | |
title: Center( | |
child: Text( | |
'Party Invite', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Person extends StatelessWidget { | |
Person({this.name, this.cb, this.idx}); | |
final String name; | |
final func cb; | |
final int idx; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyBody extends StatefulWidget { | |
@override | |
_MyBodyState createState() => _MyBodyState(); | |
} | |
class _MyBodyState extends State<MyBody> { | |
void call(int index){ | |
setState(() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<String> items = <String>[ | |
'Adam', | |
'Eve', | |
'Robert', | |
'Taylor', | |
'Micheal', | |
'Rick', | |
'Morty', | |
'Ted', | |
'Marshall', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<String> lst = List<String>(); | |
class PartyInvite extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
backgroundColor: Colors.orange, | |
actions: <Widget>[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Party Invite', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: party_invite | |
description: A new Flutter project. | |
version: 1.0.0+1 | |
environment: | |
sdk: ">=2.1.0 <3.0.0" | |
dependencies: | |
flutter: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ExponentialCurve extends StatefulWidget { | |
final List<charts.Series<DataPoint, int>> lst; | |
ExponentialCurve(this.lst); | |
@override | |
_ExponentialCurveState createState() => _ExponentialCurveState(); | |
} | |
class _ExponentialCurveState extends State<ExponentialCurve> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
NewerOlder