shared/shared library
Classes
- ALC
- Application layout config
- ApiUtils
- DateTimeUtil
- Utility functions for DateTime
- ImageUtils
- Utility functions for images croping, compressing, etc.
- Logger
- Logging message to console as developer.
- SizeConfig
- Screen size configuration.
Enums
Extensions
- BuildContextX on BuildContext
- Extensions for BuildContext.
- DateTimeX on DateTime
- Utilitity extensions for DateTime
- DioErrorX on DioError
-
Extensions of
DioError. - IntX on int
- Extensions for int.
- StringX on String
- Utilitiy extensions for String.
Properties
-
dioForApplicationJSONProvider
→ Provider<
Dio> -
Provide
Dioclient for content typeapplication/json.final -
dioForFormUrlEncodedProvider
→ Provider<
Dio> -
Provide
Dioclient for content typeapplication/x-www-form-urlencoded.final -
dioForXmlProvider
→ Provider<
Dio> -
Provide
Dioclient for content typetext/xml; charset=utf-8.final
Functions
-
getProportionateScreenHeight(
double inputHeight) → double -
getProportionateScreenWidth(
double inputWidth) → double -
launchInAppWebView(
Uri url, {Map< String, String> headers = const <String, String>{}}) → Future<void> -
Launch Uri in
InAppWebView. -
launchInBrowser(
Uri url) → Future< void> -
Launch Uri in
Browser. -
launchInWebViewWithoutDomStorage(
Uri url) → Future< void> -
Launch Uri in
InAppWebViewwithoudDOM Storage. -
launchInWebViewWithoutJavaScript(
Uri url) → Future< void> -
Launch Uri in
InAppWebViewwithoudjavascript. -
launchUniversalLinkIos(
Uri url) → Future< void> -
Launch universal Uri link in
iOS. -
nextDecode<
T> (dynamic json, String key) → T -
Decode to json
2ndtime because consumingSOAPapi need to convert for second time. -
numFromJson(
Object? json) → num -
Convert
nullvalue from Object to0. -
responseData<
T> (Response response) → T -
Convert
dataofResponsetoT -
stringFromJson(
Object? json) → String -
Convert
nullvalue from Object toemptystring.