How do I solve the Debug Console?

Hello… when I run my project. the debug console says

════════ Exception caught by widgets library ═══════════════════════════════════
The following _TypeError was thrown building MyApp(dirty):
type ‘Null’ is not a subtype of type ‘String’

The relevant error-causing widget was
MyApp
package:shop_app/main.dart:11
When the exception was thrown, this was the stack
#0 routes
package:shop_app/routs.dart:19
#1 routes (package:shop_app/routs.dart)
package:shop_app/routs.dart:1
#2 MyApp.build
package:shop_app/main.dart:23
#3 StatelessElement.build
package:flutter/…/widgets/framework.dart:4648
#4 ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:4574

════════════════════════════════════════════════════════════════════════════════

How to solve? thanks

Hi @Idha_Dwirja Looks like you have passed null to a Text Widget or the likes of it.

Check or share this line of the code as the console is showing error here:

Line 11 of main.dart file.

package:shop_app/main.dart:11