1

I am getting this above error whenever i am trying to route to another page in flutter.

Following is my code

onPressed: () {
  Navigator.push(
      context,
      MaterialPageRoute(
        builder: (context) => MyHomePage(),
      ));
  },
James Z
  • 12,209
  • 10
  • 24
  • 44
angelina
  • 59
  • 2
  • 11
  • What are you passing in `localizationDelegate` of MaterialApp()? – Just a Person Oct 24 '22 at 08:37
  • localizationsDelegates: [ GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate, S.delegate ], i am passing this in my main.dart file but the error that i am receving is in my another page – angelina Oct 24 '22 at 10:54

0 Answers0