Replace `widget.tabs[index]` with `tab` when using wrapped child
diff --git a/packages/flutter/lib/src/material/tabs.dart b/packages/flutter/lib/src/material/tabs.dart index 87a611a..11ed442 100644 --- a/packages/flutter/lib/src/material/tabs.dart +++ b/packages/flutter/lib/src/material/tabs.dart
@@ -1983,7 +1983,7 @@ heightFactor: 1.0, child: Padding( padding: _labelPaddings[index], - child: KeyedSubtree(key: _tabKeys[index], child: widget.tabs[index]), + child: KeyedSubtree(key: _tabKeys[index], child: tab), ), ); });