From 7425940d5be153430f98aa5b0735545f4a4fc3e5 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Wed, 8 Feb 2017 12:29:15 -0800 Subject: [PATCH] Prevent overflow of pagination bar with Ahem font (#7977) Once engine commit d49a6b110bced49fa318b0dd45bf409218df9ee5 rolls into Flutter rolls in, we get correct font metrics for the Ahem font, used in headless sky_shell test runs. Ahem has much wider glyphs than the system font, which causes the PaginatedDataTable bottom bar to be much wider and overflow the previous and next controls offscreen. This commit reduces the number of rows such that the prev/next controls are still just barely onscreen. --- packages/flutter/test/material/paginated_data_table_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter/test/material/paginated_data_table_test.dart b/packages/flutter/test/material/paginated_data_table_test.dart index c6d8c09a84..78933f8525 100644 --- a/packages/flutter/test/material/paginated_data_table_test.dart +++ b/packages/flutter/test/material/paginated_data_table_test.dart @@ -32,7 +32,7 @@ class TestDataSource extends DataTableSource { } @override - int get rowCount => 500 * kDesserts.length; + int get rowCount => 50 * kDesserts.length; @override bool get isRowCountApproximate => false;