This repository is where I compile and share Flutter Packages that I conceive and develop. (I refer to these packages as "Brick" because they are akin to the bricks that construct a complete project 😄)
Some of them will be published on pub.dev. Others, which need customization inside the package to be usable, will be shared in this repository, and you will need to manually copy and set them up in your source code for usage. I have provided detailed instructions right below.
Packages | Description | Type | http://pub.dev/ |
---|---|---|---|
avatar_brick | Avatar Brick is a custom avatar can automatically display your abbreviation name when no avatar is available | Widget |
Create a directory named "local_package" or any name you prefer within the root directory of your project, similar to this source.(This directory will store all custom local packages for your project)
Copy the package you need from this source code and paste it into the "local_package" directory you just created in your own source code.
In pubspec.yaml, declare the newly added package below "dependencies:" as shown in the following example:
dependencies:
package_name:
path: package_path
# Example:
_avatar:
path: local_package/_avatar
Import the path of that package where you want to use it and start utilizing it. as shown in the following example:
import 'package:_avatar/_avatar.dart';
Widget avatarBrick() =>
AvatarBrick.network(
src: "https://i-english.vnecdn.net/2023/04/28/chipu-1682673790-1682673805-6534-1682673939.png",
size: 56,
);
Thank you for using my bricks, and I hope you will provide feedback or suggestions for any areas where the package may not be optimal, so that we can collectively enhance them.
Contact me: [email protected] | linkedin | github