What is a service locator in Dart?

This is a simple Service Locator for Dart and Flutter projects with some additional goodies highly inspired by Splat . It can be used instead of InheritedWidget or Provider to access objects e.g. from your UI. Typical usage: Accessing service objects like REST API clients or databases so that they easily can be mocked.

Read more

How do you use intent in Flutter?

Flutter will handle incoming intents from Android directly by talking to the Android layer and requesting the data that was shared . The below example registers a text share intent filter on the native activity and runs our Flutter code, then other apps can share text with our Flutter app.

Read more