Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Widget ListStylise(Articles article, BuildContext context) {
- return Container(
- height: MediaQuery.of(context).size.height - 20,
- decoration: BoxDecoration(
- color: Colors.red,
- boxShadow: [
- BoxShadow(
- color: Colors.black12,
- blurRadius: 3.0,
- ),
- ],
- ),
- child: Column(
- children: [
- Container(
- decoration: BoxDecoration(
- /* image: DecorationImage(
- image: (article.urlToImage == null)
- ? Image.asset("assets/icons/heart.png")
- : NetworkImage(article.urlToImage),
- )*/
- ),
- )
- ],
- ),
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement