Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- void main() => runApp(MaterialApp(
- home: QuoteList(),
- ));
- class QuoteList extends StatefulWidget {
- @override
- _QuoteListCardState createState() => _QuoteListCardState();
- }
- class _QuoteListCardState extends State<QuoteList> {
- List<String> quotes = [
- 'Dont get mad, get even',
- 'I have nothing to loose',
- 'The truth is rarely pure and never simple'
- ];
- Widget build(BuildContext context) {
- return Scaffold(
- backgroundColor: Colors.grey[200],
- appBar: AppBar(
- title: Text('Quote'),
- centerTitle: true,
- backgroundColor: Colors.redAccent,
- ),
- body : Column(
- children : quotes.map((quote) => Text(quote)).toList(),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement