E.7. What’s the equivalent of a Gradle file? How do I add dependencies?

Dependencies are added via a YAML (Ain’t Markup Language) file called pubspec .yaml in the root of your project. This is similar to a gradle file in Android. The pubspec file uses Dart’s Pub package manager to declare and fetch dependencies. This same file can also be used to tell your app about assets like images and fonts.

Note

See the Pub package manager appendix to learn more.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.20.20