Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1856)

Unified Diff: sky/sdk/example/widgets/card_collection.dart

Issue 1241483002: Improve drawer menu items (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/sdk/example/widgets/card_collection.dart
diff --git a/sky/sdk/example/widgets/card_collection.dart b/sky/sdk/example/widgets/card_collection.dart
index 6cd48e906d99daaa05a5c07fbbe31ce300735e7e..6f9f22297f1f054c80e6662e4218f801472bc27b 100644
--- a/sky/sdk/example/widgets/card_collection.dart
+++ b/sky/sdk/example/widgets/card_collection.dart
@@ -18,7 +18,7 @@ import 'package:sky/widgets/widget.dart';
class CardCollectionApp extends App {
final TextStyle cardLabelStyle =
- new TextStyle(color: White, fontSize: 18.0, fontWeight: bold);
+ new TextStyle(color: white, fontSize: 18.0, fontWeight: bold);
final List<double> cardHeights = [
48.0, 64.0, 82.0, 46.0, 60.0, 55.0, 84.0, 96.0, 50.0,
@@ -43,7 +43,7 @@ class CardCollectionApp extends App {
Widget _builder(int index) {
if (index >= visibleCardIndices.length)
return null;
-
+
int cardIndex = visibleCardIndices[index];
Color color = lerpColor(Red[500], Blue[500], cardIndex / cardHeights.length);
Widget label = new Text("Item ${cardIndex}", style: cardLabelStyle);

Powered by Google App Engine
This is Rietveld 408576698