import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
home: ListCart(),
),
);
}
class ListCart extends StatefulWidget {
@override
_ListCartState createState() => _ListCartState();
}
class _ListCartState extends State<ListCart> {
List<String> quoteList = [
"Being happy does not mean that everything is perfect. It means that you have decided to look beyond the imperfections.",
"अगर मैं प्रयत्न करना बन्द कर दूं तो मैं अपने आपको क्षमा नहीं कर पाऊंगा।",
"Being happy does not mean that everything is perfect. It means that you have decided to look beyond the imperfections."
];
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.grey[500],
appBar: AppBar(
title: Text("Quote List"),
backgroundColor: Colors.green[850],
centerTitle: true,
elevation: 25.0,
),
body: Column(
children: quoteList.map((e) => Text(e)).toList(),
),
);
}
}
Output:
0 comments:
Post a Comment