fidenz_flutter_boilerplate 0.0.4 fidenz_flutter_boilerplate: ^0.0.4 copied to clipboard
Fidenz Flutter Boilerplate The Fidenz Flutter Boilerplate is a powerful and feature-rich starting template for Flutter app development. It provides a solid foundation and various pre-built functions t [...]
Fidenz Flutter Boilerplate
Features #
Built in :
- Check connectivity status
- Device functions
- Logger
- Local storage with key/value pair
Getting started #
Fidenz Flutter Boilerplate
The Fidenz Flutter Boilerplate is a powerful and feature-rich starting template for Flutter app development. It provides a solid foundation and various pre-built functions to simplify the development process and accelerate the creation of high-quality Flutter applications.
Examples #
Network Utility :
- Check network status
FidenzNetworkUtility.getNetworkStatus((isOnline) => {
// do your task here
});
Common Utility :
- Send contact number to dial pad :
FidenzCommonUtility.openDialPad("0716359376");
- Send url to default browser :
FidenzCommonUtility.openBrowser("https://www.youtube.com");
- Send location to map :
FidenzCommonUtility.openMap(6.8844532771946065, 79.88681071160158);
- Start screen :
FidenzCommonUtility.startScreen(context, LogoutScreen());
- End screen :
FidenzCommonUtility.endScreen(context);
Log Utility :
- log :
FidenzLogUtility.log("TAG ::: FCM TOKEN : $token");
Usage #
Network Utility :
- Check network status
FidenzNetworkUtility.getNetworkStatus((isOnline) => {
// do your task here
});
Common Utility :
- Send contact number to dial pad :
FidenzCommonUtility.openDialPad("0716359376");
- Send url to default browser :
FidenzCommonUtility.openBrowser("https://www.youtube.com");
- Send location to map :
FidenzCommonUtility.openMap(6.8844532771946065, 79.88681071160158);
- Start screen :
FidenzCommonUtility.startScreen(context, LogoutScreen());
- End screen :
FidenzCommonUtility.endScreen(context);
Log Utility :
- log :
FidenzLogUtility.log("TAG ::: FCM TOKEN : $token");
Device Utility :
- get Screen width :
var screenWidth = FidenzDeviceUtility.getWidth(context);
- get Screen height :
var screenHeight = FidenzDeviceUtility.getHeight(context);
- Enter full screen mode :
FidenzDeviceUtility.enterFullScreenMode();
- Exit full screen mode :
FidenzDeviceUtility.exitFullScreenMode();
- Hide soft keyboard :
FidenzDeviceUtility.hideSoftKeyBoard(context);
- Lock portrait mode :
FidenzDeviceUtility.lockAutoRotate();
- Control screen support orientation modes :
FidenzDeviceUtility.setScreenOrientation([DeviceOrientation.portraitUp,DeviceOrientation.landscapeLeft]);
Shared Preference Utility :
- Store data in local storage :
FidenzSharedPreferenceUtility.setData(DataType.string, "FCM_TOKEN", "ABC123");
- Retrieve data from local storage :
var token = FidenzSharedPreferenceUtility.getStringData("FCM_TOKEN");
var isUserLogged = FidenzSharedPreferenceUtility.getBoolData("IS_USER_LOGGED");
var age = FidenzSharedPreferenceUtility.getIntData("USER_AGE");
Additional information #
"This was crafted by Chalana Nipun at Fidenz Technologies in 2023."