Skip to content

Commit 0df530c

Browse files
authored
Updated main.dart file (#107)
Will declare late variable before create TabController controller to Lazily initializing a variable
1 parent 9bcc260 commit 0df530c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

using_tabs/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class MyHomeState extends State<MyHome> with SingleTickerProviderStateMixin {
2222
*-------------------- Setup Tabs ------------------*
2323
*/
2424
// Create a tab controller
25-
TabController controller;
25+
late TabController controller;
2626

2727
@override
2828
void initState() {

0 commit comments

Comments
 (0)