flutter_pro_tools library

Classes

ApiRequest
Managing api variant request
AppLocale
The AppLocale class manages the localization functionality for the application, handling the loading of language files, providing translation strings, and offering support for multiple locales.
AuthenticationManagement
The AuthenticationManagement class provides a suite of tools for managing user authentication in a Flutter application. It supports biometric authentication and phone number verification using Firebase Authentication.
DataStorageTools
Managing local data storage
DeviceTools
Tools to control the device orientation and screen size and more
FileManagement
Managing image variant tools
FlutterProTools
is a comprehensive utility package for Flutter that simplifies common development tasks such as navigation, displaying dialogs and snack bars, handling HTTP requests, managing local storage, and more. It is designed to streamline your Flutter app development by providing ready-to-use methods and tools that handle many repetitive tasks
LanguageChangeProvider
A state notifier to manage language changes in the application.
LanguageManagement
The LanguageManagement class is a utility for managing and switching the language used in a Flutter application. It provides static methods to retrieve the current language and change the app's language dynamically.
LanguageState
Represents the state of the current language setting.
LocationManagement
A Flutter utility for managing device location using the geolocator package. This library provides methods to detect the user's current location and listen for location updates.
MyLocation
A model representing a device's location details.
Managing navigation between pages with variant tools
NotificationManager
Dealing with firebase cloud messaging
ResponsiveText
A responsive text widget that adjusts its size and padding based on the screen width.
ShareService
A Flutter plugin for sharing links and files via native Android functionality. This plugin provides methods to share text links and files with other apps, including social media platforms, email clients, and more.
ShowMessage
Display message to user with variant type
SocketIoManagement
The SocketConnection class provides methods to manage WebSocket connections using the socket_io_client package. It offers functionalities to initialize a connection, check the connection status, and handle sending and receiving messages.

Enums

ApiMethod
Represents the available HTTP methods for API requests.
FileManagementType
Represents the different types of file management operations.
OrientationType
Represents the orientation types of a device.

Properties

formGlobalKey GlobalKey<FormState>
A global key for form validation and management.
getter/setter pair
languageStatus → StateNotifierProvider<LanguageChangeProvider, LanguageState>
A StateNotifierProvider that exposes the current language state.
final
A global key for accessing the Navigator of the app, enabling navigation from outside the widget tree.
getter/setter pair
snackBarGlobalKey GlobalKey<ScaffoldMessengerState>
A global key to show snack bars across the app.
getter/setter pair

Functions

checkForUpdate({required String appVersion}) → dynamic
Checks if a new version of the app is available by comparing the current platform version with the provided app version.
checkInternetConnection({required dynamic callback()}) → dynamic
Check if the connection available. Function() callback: callback function.
convertToArabicWords(int number) String
Converts an integer into Arabic words. Supports numbers from 0 to 9999.
getDateFormatByDate(DateTime date) → dynamic
Formats a given DateTime object to a yyyy-MM-dd format. DateTime date: The date to format.
getInteger(int digitCount) int
Generates a random integer with the specified number of digits. int digitCount: The number of digits the generated integer should have. Must be between 1 and a predefined maximum (_maxNumericDigits).
getTranslate(String key) → dynamic
Retrieves the translated text for the given key based on the current locale. String key: The translation key.
isVpnActive() Future<bool>
Check if the device connected to vpn
logFile({required String message, String name = ''}) → dynamic
Logs a message to the console with an optional tag/name String message: The message to log. String name: (Optional) The name or tag for the log entry.
openURL({required String url, dynamic callback()?}) Future<void>
Launches the specified URL in the default web browser and executes a callback function upon completion. String url: The URL to launch. Function()? callback: (Optional) A callback function to execute after the URL is launched.
prettyLogFile({required Map<String, dynamic> message}) → dynamic
Logs a structured map of data in a pretty-printed format. message: A Map<String, dynamic> containing the key-value pairs to be logged
readCurrentStatus(ChangeNotifierProvider<ChangeNotifier?> provider) → dynamic
Reads the current value from the specified ChangeNotifierProvider. Parameter provider: The ChangeNotifierProvider whose state needs to be read.
removeHtmlTagsAndEntities(String input) String
Removes all HTML tags and HTML entities from a given string.