Last updated:
0 purchases
flutter gearbox
Flutter GearBox #
Flutter Package contains common utility functions(logger, appRouter, snackBar, NetworkUtils, custom extension, UrlLauncher, Custom TextFields and ect... ) published on Pub dev.
Supported Devices #
Android
IOS
Linux
Windows
Macos
Installation #
Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
flutter_gearbox:
copied to clipboard
Import the package and use it in your Flutter App.
import 'package:flutter_gearbox/flutter_gearbox.dart';
copied to clipboard
Add Keys in Material App for routing and display snackbar without BuiltContext
MaterialApp(
scaffoldMessengerKey: snackbarKey,
navigatorKey: navigatorKey,
...
)
copied to clipboard
Features #
✅ Custom Logger
✅ print
✅ info
✅ verbose
✅ wtf
✅ debug
✅ warning
✅ error
✅ Custom appRouter without BuiltContext
✅ push
✅ pushOFFAll
✅ pushNamed
✅ pop
✅ ShowSnackBar without BuildContext
✅ showSnackBar
✅ Spaces
✅ VerticalSpace
✅ HorizontalSpace
✅ NetworkUtils
✅ isConnectionAvailable
✅ performAction
✅ listenConnectionStream
✅ CustomTextField
✅ NameTextField
✅ SearchTextField
✅ EmailTextField
✅ PasswordTextField
✅ PhoneNumberTextField
✅ Status Codes
✅ statusOk
✅ statusNotFound
✅ statusInvalidRequest
✅ statusInternalServerError
✅ UrlLauncher
✅ launchURL
✅ Extension
✅ string_extension --> capitalize
✅ Custom Variables
✅ isInProduction
✅ isDebugMode
✅ Custom Screens
✅ NoInterNetScreen
Example #
Logger #
logger.error("My Error Print");
copied to clipboard
AppRouter without BuildContext #
appRouter.push(HomeScreen());
copied to clipboard
ShowSnackBar without BuildContext #
showSnackBar(msg: "MOM ❤");
copied to clipboard
Spacer VerticalSpace #
VerticalSpace(height: 10);
copied to clipboard
Spacer HorizontalSpace #
HorizontalSpace(width: 10);
copied to clipboard
NetworkUtils #
final connectionStatus = await networkUtils.isConnectionAvailable();
await networkUtils.performAction();
await networkUtils.listenConnectionStream();
copied to clipboard
CustomTextField #
CustomTextField(text: "Enter your name");
copied to clipboard
Status Code #
if(res.status == statusOk) {
....
}
copied to clipboard
UrlLauncher #
await launchURL("google.com")
copied to clipboard
String Extension #
String name = username.toString().capitalize;
copied to clipboard
Custom Debug Variables #
if(isInProduction){
...Report to crash analysis
}
if(isDebugMode) {
print("HELLO WORLD");
}
copied to clipboard
NoInterNetScreen #
NoInterNetScreen();
copied to clipboard
Next Goals #
✅ Added Utility functions(extensions, logger, navigator, network, custom screen, snackbar, spaces, status_code, custom_text_field, url_launcher)
❌ More functions to add
Contributions #
If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue.
If you fixed a bug or implemented a feature, please send a pull request.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.