Learn how Flutter handles packages compared to others like npm and yarn. This directory is shared between all your Flutter apps. I’ll mainly compare Flutter package/dependency management soluton to npm since most major front-end frameworks have it build in.
Learn how Flutter handles packages compared to others like npm and yarn.
Hi 👋 My name is Luke and I am a software developer. During my years of working with JS package managers, I’ve never thought things could be done differently. I just accepted that it works as it works. Until I started working with Flutter. Something clicked. Here are my thoughts 👇
I’ll mainly compare Flutter package/dependency management soluton to npm since most major front-end frameworks have it build in.
Most front-end frameworks are built around package managers like npm, that download and store dependencies in every project directory under well known, dark whole size, directory
So if you are a dev that works on multiple front-end projects you surely have few node_modules directories. The thing is — devs are creatures of habit and we usually have our go-to picks when it comes to packages we use. It’s safe to say that every one of those node_modulse will have similar if not the same dependencies. It wouldn't be a problem if node_modules weren’t that big every time.
You work on three regular, non Flutter, front-end projects, where node_module weights on average about 600 MB that roughly 1.8GB of memory allocated just for those dependencies.
That's how everything looked before Flutter.
Google has announced new flutter 1.20 stable with many improvements, and features, enabling flutter for Desktop and Web
Flutter is an open-source UI toolkit for mobile developers, so they can use it to build native-looking Android and iOS applications from the same code base for both platforms. Flutter is also working to make Flutter apps for Web, PWA (progressive Web-App) and Desktop platform (Windows,macOS,Linux).
Recently Adobe XD releases a new version of the plugin that you can use to export designs directly into flutter widgets or screens.
Two popular package managers in the ecosystem are NPM and Yarn. Let's learn more about NPM and yarn. Find out how they work.