From 0df530c26afce7d3fe6a5366f73958c6a6a505a7 Mon Sep 17 00:00:00 2001 From: Deenadayalan M <33565852+deenamanick@users.noreply.github.com> Date: Sun, 23 Oct 2022 00:04:59 +0530 Subject: [PATCH] Updated main.dart file (#107) Will declare late variable before create TabController controller to Lazily initializing a variable --- using_tabs/lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/using_tabs/lib/main.dart b/using_tabs/lib/main.dart index c2ec1200..664b7d8d 100644 --- a/using_tabs/lib/main.dart +++ b/using_tabs/lib/main.dart @@ -22,7 +22,7 @@ class MyHomeState extends State with SingleTickerProviderStateMixin { *-------------------- Setup Tabs ------------------* */ // Create a tab controller - TabController controller; +late TabController controller; @override void initState() {