FilledStacks / flutter-tutorials

The repo contains the source code for all the tutorials on the FilledStacks Youtube channel.
MIT License
4.76k stars 1.76k forks source link

022-lifecycle-manager #60

Open ZachBird opened 4 years ago

ZachBird commented 4 years ago

the repo lib/locator.dart:6:17 went wrong, the wrong message was:

lib/locator.dart:6:17: Error: Method not found: 'GetIt'. GetIt locator = GetIt();

I dont know how to deal with it.

FilledStacks commented 4 years ago

Use GetIt.instance.

If you're gonna use get it you need to read it's readme so you know how to use it to your needs.

Sent from Outlook Mobilehttps://aka.ms/blhgte


From: Zach Bird notifications@github.com Sent: Monday, April 27, 2020 11:25:03 AM To: FilledStacks/flutter-tutorials flutter-tutorials@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [FilledStacks/flutter-tutorials] 022-lifecycle-manager (#60)

the repo lib/locator.dart:6:17 went wrong, the wrong message was:

lib/locator.dart:6:17: Error: Method not found: 'GetIt'. GetIt locator = GetIt();

I dont know how to deal with it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/FilledStacks/flutter-tutorials/issues/60, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA3M72UZSZELTP4OSUAU3OLROVFO7ANCNFSM4MRX5YNQ.

ZachBird commented 4 years ago

@FilledStacks thx for your patiences, cause i realized it's a primary issue.😅