mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Rationalise the Key API.
Add a way of having keys based on numeric types or DateTimes by having a ValueKey<T> class. Remove the redundant ways of declaring things, except for leaving one shorthand -- you can say `new Key(s)` instead of `new ValueKey<String>(s)`.
This commit is contained in:
parent
c18de38551
commit
e016635792
@ -142,7 +142,7 @@ class MineDiggerApp extends App {
|
||||
new Row(
|
||||
row,
|
||||
justifyContent: FlexJustifyContent.center,
|
||||
key: new Key.stringify(iy)
|
||||
key: new ValueKey<int>(iy)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user