i literally defined a non null route for \'/\' but still gettng that error :/ If i give a \'home\' paramter to MaterialApp, it will work fine
return MaterialApp(