mahdaad_core library

Classes

BorderToken
This class is used for border size
ButtonGroup
CircularClipper
ClassColors
this class colors used for define all colors in design system
ClassCornerRadius
this class used for define curves
Colify
In this class, all the colors used in the project are defined
CornerRadius
this class is used to define of all curves
DarkThemePreference
The class is used for dark mode settings
DarkThemeProvider
By means of this class, it can be determined whether the mode is dark or light
DarkTransition
In this class, dark mode changes to light or vice versa by means of animation
Effects
this class is used to define all shadows
GrayScales
this class is used to define types of all grayScales colors
Helpify
This class is used to display different alerts
Htify
This class is used to specify the types of HTIFYs based on the URLs specified in the project
HtifyConf
This class is used for the main settings
HtifyDriver
It is a class that has get, update, post, delete and sendFile methods to send requests to the server
This class is used to switch between application pages
NoInternet
It is a class to show the interruption of the internet
NotifCubit
This bloc for manage Notification
NotifRepository
Model of notification repository
OnlineOfflineCubit
This class is a state management that specifies the online or offline status of users
OnlineOfflineModel core
This class has a factory constructor that takes the object and returns the object, and also contains a function that converts the object into an object
OnlineOfflineRepository
This class is used as a repository of the bloc of online and offline users
Opacity
this class is used to define opacity
PrimitiveColors
this class colors used for define all primitiveColors in design system
ServerError
It is a class for displaying errors
ServerError400
ServerError401
ServerError403
ServerError404
ServerError422
ServerError500
Sizing
this class is used to define of all sizes
Spaces
this class is used to define of all spaces
Styles
In this class, ThemeData fields can be set to dark or light status
Tag
is a class to display the tag widget
TitleDivider
It is a class to display the divider and vertical divider widgets in such a way that the title is also placed in it
TypographyClass
this class for define types of all textStyle in text
TypographySetting
this class is define setting for the typography

Extensions

BoldText on Text
extension on the text widget for easier use to apply size and weight on the text
BorderExt on Card
extension to set the border on the card widget
Currency on num
In this file, the extensions needed and used in the project are defined extension to display the percentage in the text
JalaliFormat on Jalali
extension to display the date in Jalali format
Pad on Widget
extension for padding a widget
Style on ElevatedButton
extension to change the style of the ElevatedButton widget
TypographyExtension on Text
extension on the text widget for easier use to apply size and weight on the text

Properties

routes Map<String, dynamic>
Routs of api for requests
getter/setter pair

Functions

baseConnectNotification({BuildContext? context, String? ntfUrl}) Future
convertToFinglish(String val) String
getPermissionNotification(BuildContext context, {String? id}) Future
get permission notification function
getPermissionNotificationWithoutCtx({BuildContext? context, String? id}) Future
get permission notification without ctx function
registerForGetToken(BuildContext context, {Map<String, dynamic>? formValue}) Future
register for get token function
registerForGetTokenWithoutCtx({BuildContext? context, Map<String, dynamic>? formValue}) Future
register for get token without ctx function
subscribeApi(BuildContext context, {List<String>? items}) Future
subscribe api function
subscribeApiWithoutCtx({BuildContext? context, List<String>? items}) Future
subscribe api without ctx function
subscribeBatch({BuildContext? context, List<String>? items}) Future
unStash({BuildContext? context, List<String>? items}) Future
unStashApi(BuildContext context) Future
unStash api function
unStashApiWithoutCtx({BuildContext? context}) Future
unStash api without ctx function
unsubscribeApi(BuildContext context, {List<String>? items}) Future
unsubscribe api function
unsubscribeApiWithoutCtx({BuildContext? context, List<String>? items}) Future
unsubscribe api without ctx function
uploadImage(BuildContext context, {FormData? formData, Function? onProgress}) Future
upload image with form data