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.
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."
Libraries
- example
- fidenz_flutter_boilerplate
- main
- utility/DataType
- utility/fidenz_network_utility
- utility/FidenzCommonUtility
- utility/FidenzDeviceUtility
- utility/FidenzLogUtility
- utility/network/AddressCheckOptions
- utility/network/AddressCheckResult
- utility/network/InternetConnectionChecker
- utility/network/InternetConnectionStatus
- utility/network/NetworkConnectivity
- utility/shared_preference/method_channel
- utility/test
- utility/url_launch/LaunchMode
- utility/url_launch/LaunchOptions
- utility/url_launch/links
- utility/url_launch/MethodChannelUrlLauncher
- utility/url_launch/PlatformInterface
- utility/url_launch/type_conversion
- utility/url_launch/url_launcher
- utility/url_launch/UrlLauncherPlatform
- utility/url_launch/WebViewConfiguration