mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This reverts commit ea21d0c542d05a7738a8357db48fe9490c25c621 which didn't resolve the pagination control overflow issue. Commit 7425940d5be153430f98aa5b0735545f4a4fc3e5 replaces this as an alternate workaround. Once flutter/flutter#7980 is resolved, we should revert 7425940d5be153430f98aa5b0735545f4a4fc3e5 and scroll instead.
30 lines
1.4 KiB
Dart
30 lines
1.4 KiB
Dart
// Copyright 2017 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
class Dessert {
|
|
Dessert(this.name, this.calories, this.fat, this.carbs, this.protein, this.sodium, this.calcium, this.iron);
|
|
|
|
final String name;
|
|
final int calories;
|
|
final double fat;
|
|
final int carbs;
|
|
final double protein;
|
|
final int sodium;
|
|
final int calcium;
|
|
final int iron;
|
|
}
|
|
|
|
final List<Dessert> kDesserts = <Dessert>[
|
|
new Dessert('Frozen yogurt', 159, 6.0, 24, 4.0, 87, 14, 1),
|
|
new Dessert('Ice cream sandwich', 237, 9.0, 37, 4.3, 129, 8, 1),
|
|
new Dessert('Eclair', 262, 16.0, 24, 6.0, 337, 6, 7),
|
|
new Dessert('Cupcake', 305, 3.7, 67, 4.3, 413, 3, 8),
|
|
new Dessert('Gingerbread', 356, 16.0, 49, 3.9, 327, 7, 16),
|
|
new Dessert('Jelly bean', 375, 0.0, 94, 0.0, 50, 0, 0),
|
|
new Dessert('Lollipop', 392, 0.2, 98, 0.0, 38, 0, 2),
|
|
new Dessert('Honeycomb', 408, 3.2, 87, 6.5, 562, 0, 45),
|
|
new Dessert('Donut', 452, 25.0, 51, 4.9, 326, 2, 22),
|
|
new Dessert('KitKat', 518, 26.0, 65, 7.0, 54, 12, 6),
|
|
];
|