import 'package:flutter/cupertino.dart' ; import 'package:flutter/material.dart' ; import 'quotes.dart' ; void main () => runApp( MaterialApp ( home: QuoteList () )) ; class QuoteList extends StatefulWidget { @override _QuoteListState createState () => _QuoteListState () ; } class _QuoteListState extends State<QuoteList> { List<Quote> quotes = [ Quote ( 'Live your life' , 'CNU' ) , Quote ( 'Do what you love' , 'SREENIVAS' ) , Quote ( 'Never Settle' , 'REDDY' ) ] ; Widget quoteTemplate (quote){ return Card ( margin: EdgeInsets . fromLTRB ( 16 , 16 , 16 , 0 ) , child: Padding ( padding: const EdgeInsets . all ( 12.0 ) , child: Column ( crossAxisAlignment: CrossAxisAlignment. stretch , children: <Widget>[ Text ( quote.text , style: TextStyle ( fontSize: 20 , ...