-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Description
Before the update, I had a ListView with a set of ListTiles that rendered an image on the left side of each tile with the "leading" parameter and a title on the right using the "title" parameter. Now, the image is stretched across the entire tile, and the title value is not displayed on the screen.
Steps to Reproduce
Here is my code. The products variable contains a list of maps with the following structure:
"image" : (name of image file in assets folder)
"title": title of item
import 'package:flutter/material.dart';
class ProductListPage extends StatelessWidget{
final List<Map<String, dynamic>> products;
ProductListPage (this.products);
@OverRide
Widget build(BuildContext context) {
return ListView.builder(
itemBuilder: (BuildContext context, int index) {
return ListTile(
leading: Image.asset(products[index]['image']),
title: Text(products[index]['title']),
// title: Text('test')
);
},
itemCount: products.length,
);
}
}
Attached screen shots show how the program ran before and after the version 1.2 upgrade.