Twitter - Layout implemented - need to get API data

This commit is contained in:
kwainright
2020-04-07 16:48:18 -04:00
parent 5cdf2549df
commit b8b0a790f6
2 changed files with 18 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ class Home extends StatelessWidget {
),
ListTile(
title: IconButton(
icon: Icon(Icons.),
icon: Icon(Icons.voice_chat),
onPressed: () => Navigator.pushNamed(context, '/Twitter'),
),
),

View File

@@ -10,7 +10,21 @@ class TwitterFeed extends StatelessWidget{
title: Text("49ers"),
backgroundColor: Colors.green,
),
body: Text("Twitter Goes here"),
body: Container(
color: Colors.black12,
child: ListView.builder(
itemCount: 10,
itemBuilder: (context, ind){
return Card(
child: ListTile(
leading: FlutterLogo(),
title: Text('Twitter User'),
subtitle: Text('Tweet: I really hope I can figure out the whole URl thing what if this is longer and stuff. will it wrap around? I hope so we about to find out'),
),
);
}
),
),
drawer: Drawer(
child: ListView(
children: <Widget>[
@@ -37,4 +51,5 @@ class TwitterFeed extends StatelessWidget{
)
));
}
}
}