wa_flutter_lib library
main file of wa_flutter_lib package which includes all package file paths
Classes
- AvailableLocation
- Available Business locations object
- BaseClient
- The abstract base class for an HTTP client.
- BaseRequest
- The base class for HTTP requests.
- BaseResponse
- The base class for HTTP responses.
- BusinessAppConfigModel
- Business app config model
- BusinessContactUs
- Business contact detail object
- BusinessDelivery
- Business delivery object
- BusinessLocation
- Business location object
- BusinessOrder
- Business order object
- BusinessProduct
- Business product object
- BusinessServices
- BusinessTheme
- Business theme object
- ByteStream
- A stream of chunks of bytes representing a single piece of data.
- ChangePassword
- change password screen
- Client
- The interface for HTTP clients that take care of maintaining persistent connections across multiple requests to the same server.
- CommonFunctions
- DemoLocalization
- this localization class used to retrieve json files of different languages.
- ForgotPassword
- forgot password screen
- IntlPhoneField
- LoginScreen
- login screen
- LoginScreenWidgets
- Common Login screen widgets which are helpful in login screen and registration screen in the app
- MultipartFile
- A file to be uploaded as part of a MultipartRequest.
- MultipartRequest
-
A
multipart/form-data
request. - OtpVerificationScreen
- verify otp screen
- RedeemCoin
- Business redeem coin object
- RegisterUserScreen
- register user screen
- Request
- An HTTP request where the entire request body is known in advance.
- ResetPasswordScreen
- reset password screen
- Response
- An HTTP response where the entire response body is known in advance.
- shared preference for storing app data locally
- SplashScreen
- splash screen
- StreamedRequest
- An HTTP request where the request body is sent asynchronously after the connection has been established and the headers have been sent.
- StreamedResponse
- An HTTP response where the response body is received asynchronously after the headers have been received.
- UserModel
- User model
- UserServices
- UserSetting
- user setting object
- Widgets
- common widgets which are helpful in most of the screen in the app
Enums
Constants
Properties
- baseUrl ↔ String
-
latefinal
- businessDomain ↔ String
-
latefinal
- fcmToken ↔ String
-
latefinal
- homeScreen ↔ dynamic
-
latefinal
- isLoginRequired ↔ bool
-
latefinal
- primaryColor ↔ Color
-
latefinal
- secondaryColor ↔ Color
-
latefinal
- themeColor ↔ Color
-
latefinal
Functions
-
businessAppConfigModelFromJson(
String str) → BusinessAppConfigModel -
businessAppConfigModelToJson(
BusinessAppConfigModel data) → String -
delete(
Uri url, {Map< String, String> ? headers, Object? body, Encoding? encoding}) → Future<Response> - Sends an HTTP DELETE request with the given headers to the given URL.
-
get(
Uri url, {Map< String, String> ? headers}) → Future<Response> - Sends an HTTP GET request with the given headers to the given URL.
-
getLocale(
) → Future< Locale> -
getTranslated(
BuildContext context, dynamic key) → String - to translate requested string value into selected local language
-
head(
Uri url, {Map< String, String> ? headers}) → Future<Response> - Sends an HTTP HEAD request with the given headers to the given URL.
-
initWA(
{required dynamic screen, required String domain, required String apiUrl, required Color theme, required Color primary, required Color secondary, required bool loginRequired, String? firebaseToken}) → void -
patch(
Uri url, {Map< String, String> ? headers, Object? body, Encoding? encoding}) → Future<Response> - Sends an HTTP PATCH request with the given headers and body to the given URL.
-
post(
Uri url, {Map< String, String> ? headers, Object? body, Encoding? encoding}) → Future<Response> - Sends an HTTP POST request with the given headers and body to the given URL.
-
printMessage(
String printMessage) → void - print message function to avoid prints in release mode of app
-
put(
Uri url, {Map< String, String> ? headers, Object? body, Encoding? encoding}) → Future<Response> - Sends an HTTP PUT request with the given headers and body to the given URL.
-
read(
Uri url, {Map< String, String> ? headers}) → Future<String> - Sends an HTTP GET request with the given headers to the given URL and returns a Future that completes to the body of the response as a String.
-
readBytes(
Uri url, {Map< String, String> ? headers}) → Future<Uint8List> - Sends an HTTP GET request with the given headers to the given URL and returns a Future that completes to the body of the response as a list of bytes.
-
runWithClient<
R> (R body(), Client clientFactory(), {ZoneSpecification? zoneSpecification}) → R -
Runs
body
in its own Zone with the Client returned byclientFactory
set as the default Client. -
setLocale(
String languageCode) → Future< Locale>
Exceptions / Errors
- ClientException
- An exception caused by an error in a pkg/http client.