mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Flutter 3.29 beta (#2571)
This commit is contained in:
@@ -51,9 +51,9 @@ class Item {
|
||||
final int price = 42;
|
||||
|
||||
Item(this.id, this.name)
|
||||
// To make the sample app look nicer, each item is given one of the
|
||||
// Material Design primary colors.
|
||||
: color = Colors.primaries[id % Colors.primaries.length];
|
||||
// To make the sample app look nicer, each item is given one of the
|
||||
// Material Design primary colors.
|
||||
: color = Colors.primaries[id % Colors.primaries.length];
|
||||
|
||||
@override
|
||||
int get hashCode => id;
|
||||
|
||||
Reference in New Issue
Block a user