Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit bf07a49

Browse files
committed
[Cupertino] Fix bug
1 parent 0ec9896 commit bf07a49

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Runtime/widgets/heroes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public _HeroFlightManifest(
178178
HeroFlightShuttleBuilder shuttleBuilder,
179179
bool isUserGestureTransition
180180
) {
181-
D.assert(fromHero.widget.tag == toHero.widget.tag);
181+
D.assert(fromHero.widget.tag.ToString() == toHero.widget.tag.ToString());
182182
this.type = type;
183183
this.overlay = overlay;
184184
this.navigatorRect = navigatorRect;

Samples/UIWidgetsGallery/demo/cupertino/cupertino_navigation_demo.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,6 @@ public override State createState() {
346346
class Tab1ItemPageState : State<Tab1ItemPage> {
347347
public override void initState() {
348348
base.initState();
349-
this.relatedColors = new List<Color>(10);
350349

351350
this.relatedColors = new List<Color>();
352351
for (int i = 0; i < 10; i++) {

0 commit comments

Comments
 (0)