Fix niggling PaginatedDataTable bugs (#13556)

Prevent header from thinking it can wrap and then overflowing.

Fix default footer string which lost its colon (localized values are fine).

Make the "rows per page" drop-down include at least one value even when the table lacks many items. (Previously it would assert if your table was too short.)

Make the footer scrollable.

Fix some todos and improve some debug output.

Tests for much of the above.
This commit is contained in:
Ian Hickson
2017-12-19 12:39:48 -08:00
committed by GitHub
parent b5eac0422a
commit 78ff7707e1
10 changed files with 247 additions and 24 deletions

View File

@@ -109,6 +109,13 @@ List<GalleryItem> _buildGalleryItems() {
routeName: ChipDemo.routeName,
buildRoute: (BuildContext context) => new ChipDemo(),
),
new GalleryItem(
title: 'Data tables',
subtitle: 'Data tables',
category: 'Material Components',
routeName: DataTableDemo.routeName,
buildRoute: (BuildContext context) => new DataTableDemo(),
),
new GalleryItem(
title: 'Date and time pickers',
subtitle: 'Date and time selection widgets',