import 'package:flutter/material.dart'; import 'package:le_kiosque_by_gcs/model/magazine.dart'; class ItemMagazineSearch extends StatelessWidget { const ItemMagazineSearch({ Key key, @required this.magazine, }) : super(key: key); final Magazine magazine; @override Widget build(BuildContext context) { return Padding( padding: EdgeInsets.only(top: 16, left: 16, right: 16), child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Row( children: [ Container( height: 50, width: 50, decoration: BoxDecoration( color: Colors.grey, shape: BoxShape.circle, image: DecorationImage( image: NetworkImage(magazine.urlCover), fit: BoxFit.cover, ), ), ), Padding( padding: EdgeInsets.only(left: 16.0), child: Text( magazine.title, style: TextStyle( fontSize: 16, color: Color(0xFF3B3B3B), ), ), ), ], ), InkWell( onTap: () => _removeRecentSearch(context), child: Icon( Icons.close, color: Color(0xFF5D5D5D), ), ) ], ), ); } _removeRecentSearch(BuildContext context) {} }