Skip to content

Commit

Permalink
update style
Browse files Browse the repository at this point in the history
  • Loading branch information
Liangdi committed Jul 15, 2019
1 parent fe3df63 commit 31c42e6
Showing 1 changed file with 33 additions and 27 deletions.
60 changes: 33 additions & 27 deletions lib/pages/workshop_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,34 +67,40 @@ class _WorkshopPageState extends State<WorkshopPage> {
],
),
body: Center(
child: ListView(
children: <Widget>[
...workshopItems.map((Workshop item) {
return Card(
elevation: 5,
child: Column(
children: <Widget>[
Container(
child: CachedNetworkImage(
imageUrl: item.cover,
placeholder: (context, url) =>
new CircularProgressIndicator(),
errorWidget: (context, url, error) =>
new Icon(Icons.error),
child: Padding(
padding: const EdgeInsets.all(16.0),
child: ListView(
children: <Widget>[
...workshopItems.map((Workshop item) {
return Card(

elevation: 5,
margin: const EdgeInsets.only(top: 8.0),
child: Column(

children: <Widget>[
Container(
child: CachedNetworkImage(
imageUrl: item.cover,
placeholder: (context, url) =>
new CircularProgressIndicator(),
errorWidget: (context, url, error) =>
new Icon(Icons.error),
),
),
),
Padding(
padding: const EdgeInsets.only(bottom: 8.0),
child: ListTile(
title: Text(item.title),
subtitle: Text(item.description),
),
)
],
),
);
}).toList(),
],
Padding(
padding: const EdgeInsets.only(bottom: 8.0),
child: ListTile(
title: Text(item.title),
subtitle: Text(item.description),
),
)
],
),
);
}).toList(),
],
),
),
),
floatingActionButton: FloatingActionButton(
Expand Down

0 comments on commit 31c42e6

Please sign in to comment.