flutter_toolbox
library
Functions
-
call(String phone)
→ Future<void>
-
-
d(Object object)
→ void
-
-
d2(Object object)
→ void
-
-
dAll(Object object)
→ void
-
-
errorToast(String msg)
→ dynamic
-
-
fixExifRotation(File image, {dynamic deleteOriginal = false})
→ Future<File>
-
-
isInRange(int time, int startTime, int endTime)
→ bool
-
-
launchGoogleMaps(double latitude, double longitude)
→ Future<void>
-
-
launchMaps(double latitude, double longitude)
→ Future<void>
-
-
materialRoute(Widget widget, {bool setName = true})
→ MaterialPageRoute
-
-
multiFile(File file, String name)
→ Future<MultipartFile?>
-
-
picImage(BuildContext context)
→ Future<File?>
-
-
picImageMultiFile(BuildContext context, String name)
→ Future<MultipartFile?>
-
-
prefs()
→ Future<SharedPreferences>
-
-
push(BuildContext context, Widget widget, {bool setName = true, bool authCheck = true})
→ Future
-
-
pushAndRemoveUntil(BuildContext context, Widget widget, Widget? untilPage, {bool authCheck = true})
→ Future
-
you can pass null to
untilPage
and it will clear the stack
-
pushReplacement(BuildContext context, Widget widget, {bool authCheck = true})
→ Future
-
-
safeLaunch(String urlString)
→ Future<void>
-
-
safeRequest<T>(Future<Response<T>> request, {dynamic onSuccess(T? result)?, dynamic onError(ErrorResponse? error)?, dynamic onUnknownError(dynamic error)?, bool showServerErrorMessage = true})
→ Future
-
-
sendMail({required String email, String subject = '', String body = ''})
→ Future<void>
-
-
serverDateFormat(DateTime date)
→ String
-
-
serverTimeFormat(TimeOfDay time)
→ String
-
-
successToast(String msg)
→ dynamic
-
-
toast(String msg)
→ dynamic
-