From 12b21997ca8c3a4cfe8a4ec2bc5821eec801c930 Mon Sep 17 00:00:00 2001 From: Hixie Date: Thu, 25 Jun 2015 17:27:43 -0700 Subject: [PATCH] Let's hide double.INFINITY a bit more, by providing cleaner APIs for the cases where we're currently trying to use it. R=abarth@chromium.org Review URL: https://codereview.chromium.org/1209233002. --- examples/widgets/styled_text.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/widgets/styled_text.dart b/examples/widgets/styled_text.dart index 2f5e6f3a0c9..3c9b15ab8ae 100644 --- a/examples/widgets/styled_text.dart +++ b/examples/widgets/styled_text.dart @@ -63,7 +63,7 @@ HAL: This mission is too important for me to allow you to jeopardize it.'''; Component createSeparator() { return new Container( - constraints: const BoxConstraints(minWidth: double.INFINITY, maxHeight: 0.0), + constraints: const BoxConstraints.expandWidth(maxHeight: 0.0), margin: const EdgeDims.symmetric(vertical: 10.0, horizontal: 64.0), decoration: const BoxDecoration( border: const Border(