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}) Future<bool>
Checks if the given appVersion is newer than the current platform version.
checkInternetConnection({required dynamic callback()}) → void
Checks the internet connection by attempting to resolve 'www.google.com'.
convertToArabicWords(int number) String
Converts an integer into Arabic words. Supports numbers from 0 to 9999.
getDateFormatByDate(DateTime date) String
Formats a DateTime object into a string in YYYY-MM-DD format.
getInteger(int digitCount) int
Generates a random positive integer with exactly digitCount digits.
getTranslate(String key) String
Retrieves a translated string for the given key.
isVpnActive() Future<bool>
Checks whether a VPN connection is currently active on the device.
logFile({required String message, String name = ''}) → dynamic
Logs a message with an optional name tag to the developer console in debug mode.
makeCall(String number) Future<void>
Initiates a direct phone call to the given number without opening the dialer UI.
openURL({required String url, dynamic callback()?}) Future<void>
Attempts to open the given url using a platform-specific method channel.
prettyLogFile({required Map<String, dynamic> message}) → dynamic
Logs a formatted map message to the console when in debug mode.
readCurrentStatus(ChangeNotifierProvider<ChangeNotifier?> provider) → dynamic
Reads a provider of type ChangeNotifierProvider from the current context tied to the global snackBarGlobalKey.
removeHtmlTagsAndEntities(String input) String
Removes all HTML tags and HTML entities from a given string.