Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch ancestor of main.dart to avoid potential "problems" #19

Open
gcappon opened this issue May 27, 2024 · 0 comments
Open

Switch ancestor of main.dart to avoid potential "problems" #19

gcappon opened this issue May 27, 2024 · 0 comments

Comments

@gcappon
Copy link
Owner

gcappon commented May 27, 2024

do

create: (context) => Cart(),
child: MaterialApp(
//This specifies the app entrypoint
home: HomePage(),
),

instead of:

  return MaterialApp(
   create: (context) => Cart(),
    //This specifies the app entrypoint
    child: HomePage(),
  ),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant