utils/utils library
Classes
- CustomColor
- CustomColor class to uses for in this package all ui will use project colors This class is used to set the primary color, text color, background color This class is very useful for setting the colors
Properties
- globalLogger → Logger
-
globalLogger method to set the value of logger
This logger is used to log the messages
This is very useful for debugging
This is a global logger
final
- locale ↔ Locale?
-
locale method to set the value of locale
This method is used to set the locale of the app
This is very useful for localization
This is a global variable
getter/setter pair
-
navigatorKey method to set the value of navigatorKey
This key is used to navigate between the screens
This is very useful for navigation
This is a global key
This is used in main.dart file
getter/setter pair
-
snackbarKey
↔ GlobalKey<
ScaffoldMessengerState> ? -
snackbarKey method to set the value of snackbarKey
This key is used to show the snackbar
This is very useful for showing the snackbar
This is a global key
This is used in main.dart file
getter/setter pair
- space1C ↔ Widget
-
space1C is a const SizedBox with height 4
getter/setter pair
- space1hC ↔ Widget
-
space1hC is a const SizedBox with height 100
getter/setter pair
- space1hR ↔ Widget
-
space1hR is a const SizedBox with width 100
getter/setter pair
- space1R ↔ Widget
-
SizedBox Widget Height Width Custom
space1R is a const SizedBox with width 4
getter/setter pair
- space2C ↔ Widget
-
space2C is a const SizedBox with height 8
getter/setter pair
- space2R ↔ Widget
-
space2R is a const SizedBox with width 8
getter/setter pair
- space3C ↔ Widget
-
space3C is a const SizedBox with height 12
getter/setter pair
- space3R ↔ Widget
-
space3R is a const SizedBox with width 12
getter/setter pair
- space4C ↔ Widget
-
space4C is a const SizedBox with height 16
getter/setter pair
- space4R ↔ Widget
-
space4R is a const SizedBox with width 16
getter/setter pair
- space5C ↔ Widget
-
space5C is a const SizedBox with height 20
getter/setter pair
- space5R ↔ Widget
-
space5R is a const SizedBox with width 20
getter/setter pair
- space6C ↔ Widget
-
space6C is a const SizedBox with height 24
getter/setter pair
- space6R ↔ Widget
-
space6R is a const SizedBox with width 24
getter/setter pair
- space7C ↔ Widget
-
space7C is a const SizedBox with height 28
getter/setter pair
- space7R ↔ Widget
-
space7R is a const SizedBox with width 28
getter/setter pair
- space8C ↔ Widget
-
space8C is a const SizedBox with height 32
getter/setter pair
- space8R ↔ Widget
-
space8R is a const SizedBox with width 32
getter/setter pair
Functions
-
banNumber(
String text) → dynamic - banNumber method to convert the number to Bengali number This method is used to convert the number to Bengali number This is very useful for localization
-
localizationCheckForNumber(
dynamic data) → dynamic - localizationCheckForNumber method to check the number for localization This method is used to check the number for localization This is very useful for localization This method is can be uses for any number Here locale is used to check the locale If the locale is 'bn_BD' then the number will be converted to Bengali number Here using banNumber is used to convert the number to Bengali number Inside banNumber method numberMultiLan is used to convert the number to Bengali number This method is a global method This method is used in many places
-
numberMultiLan(
String number) → dynamic - numberMultiLan method to convert the number to Bengali number This method is used to convert the number to Bengali number This is very useful for localization