helping_hand

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

helping hand

Helping Hand is basically a collections of useful code snippets to save your time in development
process. Every project contains these basic code snippets and I was tired of writting it again and
again so I made a repo for everyone to take advantage of it and boost their production.
Features #

Customisable Event Dialogs: Error, Warning, Success & Info
Timestamp formation extension showing from seconds to years: i.e 1m ago | 1day agoo
Spacing extensions: To add desire spacing both horizontally and vertically
Action customisable confirmation dialog

Getting started #
Add this plugin with this command
flutter pub add helping_hand
copied to clipboard
Usage #
To add horizontal spacing in your widget tree:
16.width
copied to clipboard
To add vertical spacing in your widget tree:
16.height
copied to clipboard
To get time elasped with short labels:
DateTime now=DateTime.now();
now.timeElasped();
copied to clipboard
To get time elasped with full labels:
DateTime now=DateTime.now();
now.timeElasped(showFullLabels:true);
copied to clipboard
If you want to show Alert dialogs or Snackbar dialogs then here is an example:
HelpingHand.showError(message:"This is an error",context:context);
copied to clipboard
You can show error, warning, info and success dialog. Here context is your buildContext of widget tree. If you are using Getx then you can have it like this:
HelpingHand.showError(message:"This is an error",context:Get.context!);
copied to clipboard
To show confirmation dialog:
HelpingHand.instance.showConfirmationDialog(
message: "Want to exist the app?",
context: context,
onConfirm: TextButton(
onPressed: () async {
Navigator.pop(context);
exit(0);
},
child: const Text("Exit"),
),
onCancel: IconButton(
onPressed: () async {
Navigator.pop(context);
},
icon: const Icon(Icons.close),
),
);
copied to clipboard
Additional information #
Everyone is welcome to include useful code snippets so that we can increase our speed during development. Accepting pull requests on the repo.
Feel free to contact me by paying me a visit on my website:
abulkalam.dev

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.