damondouglas commented on a change in pull request #16369:
URL: https://github.com/apache/beam/pull/16369#discussion_r788918953



##########
File path: playground/frontend/lib/modules/output/components/output.dart
##########
@@ -33,7 +33,7 @@ class _OutputState extends State<Output> with 
SingleTickerProviderStateMixin {
 
   @override
   void initState() {
-    tabController = TabController(vsync: this, length: 3);
+    tabController = TabController(vsync: this, length: 2);

Review comment:
       @miamihotline This comment is not a blocker for this PR but in the 
future I propose instead of hardcoding the number of tabs in the TabController, 
having a final variable that is an array of OutputTab widgets and using this 
variable to assign its length to the TabController length property and 
assigning this array to the tabs property of the TabBar widget.  This way one 
could add or remove widgets in the TabBar tabs property and never have to 
remember to also change this number.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to