Sylvia Dieckmann

Flutter Packages and Plugins - A Look Under the Hood

How does one Flutter plugin support Android, iOS, and web? It's not a single package, but three. Discover the power of federated plugins.

Flutter Packages and Plugins - A Look Under the Hood
#1about 4 minutes

A brief introduction to the Flutter framework

Flutter is a cross-platform UI toolkit from Google that uses a widget-based architecture and compiles to native code for high performance.

#2about 8 minutes

Understanding and using Flutter packages for code reuse

Packages are reusable units of Dart code that can be added to a project using the `flutter pub add` command and are defined in the `pubspec.yaml` file.

#3about 11 minutes

Using method channels to call native platform code

Plugins use asynchronous method channels to communicate between Dart code and native platform APIs, enabling access to hardware features like the battery level.

#4about 5 minutes

Creating a standalone plugin package from a template

The `flutter create` command with the plugin template generates a skeleton project for building a shareable plugin with a public API and an example app.

#5about 8 minutes

The federated architecture for multi-platform plugins

A federated plugin separates the app-facing API, a platform interface, and platform-specific implementations, allowing developers to independently add or replace platform support.

#6about 4 minutes

Key takeaways and resources for plugin development

A summary of how packages and plugins enhance code structure and reusability, with recommendations for official documentation and community articles.

Related jobs
Jobs that call for the skills explored in this talk.

d

Saby Company
Delebio, Italy

Junior

test

Milly
Vienna, Austria

Intermediate

Featured Partners

Related Articles

View all articles
AL
Anna Leushchenko
Basic And Advanced Networking in Dart and Flutter
Most applications, be it mobile, web, or desktop, depend on some kind of backend. Thus, an API layer is an integral part of application implementation.This six-part series presents tools and approaches that facilitate API layer implementation in Flut...
Basic And Advanced Networking in Dart and Flutter
CH
Chris Heilmann
WeAreDevelopers LIVE days are changing - get ready to take part
Starting with this week's Web Dev Day edition of WeAreDevelopers LIVE Days, we changed the the way we run these online conferences. The main differences are:Shorter talks (half an hour tops)More interaction in Q&AA tips and tricks "Did you know" sect...
WeAreDevelopers LIVE days are changing - get ready to take part
EM
Eli McGarvie
10 Essential Figma Plugins for Frontend Developers in 2023
In 2023, tools for frontend developers drop by the minute, and Figma might be the most visually appealing. The cloud-based UX and UI design tool that simplifies almost any design process recently scored a scanty 20-billion-dollar sale, and it was par...
10 Essential Figma Plugins for Frontend Developers in 2023
CH
Chris Heilmann
Dev Digest 134 - Where pixels sing?
News and ArticlesWeAreDevelopers LIVE Data and Security Day is on Wednesday, 25/09/2024. Learn about OPC UA Updates, Best Practices for Using GitHub Secrets, Passwordless Web 1.5, Emerging AI Security Risks, Data Privacy in LLMs and get a chance to t...
Dev Digest 134 - Where pixels sing?

From learning to earning

Jobs that call for the skills explored in this talk.

Flutter Engineer

Flutter Engineer

Nlodgify

Remote
Dart
Flutter
Adobe InDesign
Continuous Integration