From 8b6f2ff43fd83df295ca5a476fdd01dd432dbb46 Mon Sep 17 00:00:00 2001 From: lit-lalit <75823395+lit-lalit@users.noreply.github.com> Date: Wed, 13 Oct 2021 04:17:55 +0530 Subject: [PATCH] added listview --- lib/screens/home_screen.dart | 130 ++++++++++++++++++++++++++++++----- 1 file changed, 113 insertions(+), 17 deletions(-) diff --git a/lib/screens/home_screen.dart b/lib/screens/home_screen.dart index aa8d7da..adb8088 100644 --- a/lib/screens/home_screen.dart +++ b/lib/screens/home_screen.dart @@ -5,24 +5,120 @@ class HomeScreen extends StatelessWidget { @override Widget build(BuildContext context) { - return Column( - crossAxisAlignment: CrossAxisAlignment.stretch, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Icon( - Icons.home, - size: 250.0, - color: Colors.grey, - ), - Text( - 'HOME', - textAlign: TextAlign.center, - style: TextStyle( - fontSize: 40.0, - color: Colors.grey, - ), + return Padding( + padding: const EdgeInsets.only(top: 30,left: 10,right: 10), + child: Stack( + children:[ ListView( + children: [ + Padding( + padding: const EdgeInsets.only(top: 5,bottom: 5), + child: Container( + color: Colors.blue, + height: 60, + child: Center( + child: Text('February'), + ), + ), + ), + Padding( + padding: const EdgeInsets.only(top: 5,bottom: 5), + child: Container( + color: Colors.blue, + height: 60, + child: Center( + child: Text('March'), + ), + ), + ),Padding( + padding: const EdgeInsets.only(top: 5,bottom: 5), + child: Container( + color: Colors.blue, + height: 60, + child: Center( + child: Text('April'), + ), + ), + ),Padding( + padding: const EdgeInsets.only(top: 5,bottom: 5), + child: Container( + color: Colors.blue, + height: 60, + child: Center( + child: Text('May'), + ), + ), + ),Padding( + padding: const EdgeInsets.only(top: 5,bottom: 5), + child: Container( + color: Colors.blue, + height: 60, + child: Center( + child: Text('June'), + ), + ), + ),Padding( + padding: const EdgeInsets.only(top: 5,bottom: 5), + child: Container( + color: Colors.blue, + height: 60, + child: Center( + child: Text('July'), + ), + ), + ),Padding( + padding: const EdgeInsets.only(top: 5,bottom: 5), + child: Container( + color: Colors.blue, + height: 60, + child: Center( + child: Text('August'), + ), + ), + ),Padding( + padding: const EdgeInsets.only(top: 5,bottom: 5), + child: Container( + color: Colors.blue, + height: 60, + child: Center( + child: Text('September'), + ), + ), + ),Padding( + padding: const EdgeInsets.only(top: 5,bottom: 5), + child: Container( + color: Colors.blue, + height: 60, + child: Center( + child: Text('October'), + ), + ), + ), + + Padding( + padding: const EdgeInsets.only(top: 5,bottom: 5), + child: Container( + color: Colors.blue, + height: 60, + child: Center( + child: Text('November'), + ), + ), + ), + Padding( + padding: const EdgeInsets.only(top: 5,bottom: 5), + child: Container( + color: Colors.blue, + height: 60, + child: Center( + child: Text('December'), + ), + ), + ), + ], ), - ], + ] + ), + ); } }