For example:
If I run this App in DartPad the console only says Script Error. How can I get more information (What is the exact error? Where is it located?, ...)?
Try to wrap your code inside the try-catch block and then print the error on the console.
For example,
try {
Navigator.of(context).push(MaterialPageRoute(builder: (context) => ScreenTwo()));
} catch (e) {
print(e);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With