mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-05-17 21:15:54 +08:00
Updated main.dart file (#107)
Will declare late variable before create TabController controller to Lazily initializing a variable
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user