Skip to content

Commit

Permalink
Updated main.dart file (#107)
Browse files Browse the repository at this point in the history
Will declare late variable before create TabController controller to Lazily initializing a variable
  • Loading branch information
deenamanick authored Oct 22, 2022
1 parent 9bcc260 commit 0df530c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion using_tabs/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MyHomeState extends State<MyHome> with SingleTickerProviderStateMixin {
*-------------------- Setup Tabs ------------------*
*/
// Create a tab controller
TabController controller;
late TabController controller;

@override
void initState() {
Expand Down

0 comments on commit 0df530c

Please sign in to comment.