Skip to content
0:00 / 0:00

#flutter#dart#packages

Building Pure Dart Libraries and Packages for Dart's Flutter Framework

Tensor Programming

50K subscribers • 4 videos on Hallway

YouTube
  • Recommended by 2 people: 1 in engineering communities and 1 on Stack Overflow and its sister sites.
  • Linked in the descriptiontensor-programming/flutter_lib_example
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

9.1K views8 years ago2 recommendations

Mobile developmentProgramming languagesFlutter and React Native

How to create and structure pure Dart packages and libraries to share code in Flutter applications.

In this tutorial, we look at how we can build dart based packages for Flutter. Source Code: github.com/tensor-programming/flutter_lib_example Feel free to donate: Patreon: patreon.com/tensor_programming ETH: 0x03247265dd5242605bD2FA3c40fb3b70d9e3D685

Why it's here

2 people recommend this

What people say. Recommended as a practical guide on how to share code between multiple Flutter projects using packages.

Kevanon Stack Overflow • Recommends

On “How do you share code between 2 Flutter projects?”

Here is the approach I found: using packages. You can create a package with the following terminal command: flutter create --template=package myPackageName then simply create whatever class, function, etc. you want to share across your projects in the package and import them in your other Flutter projects. Here is an example: link to this video

u/Purple_Pizzazzin r/FlutterDev • Recommends

Building Pure Dart Libraries and Packages for Flutter