growerp_core library
Classes
- AboutForm
- AboutFormHeader
- AppBlocObserver
- AuthBloc
- Authbloc controls the connection to the backend
- AuthChangePassword
- AuthEvent
- AuthLoad
- AuthLoggedOut
- AuthLogin
- AuthRegister
- AuthResetPassword
- AuthState
- AuthTest
- BottomLoader
- ChangeIpForm
- CommonTest
- Constant
- CoreLocalizations
-
Callers can lookup localized strings with an instance of CoreLocalizations
returned by
CoreLocalizations.of(context)
. - CreditDebitButton
- CreditDebitButtonState
- DashBoardForm
-
DataFetchBloc<
T> - DataFetchBlocEvent
-
DataFetchState<
T> - DialogCloseButton
- DisplayMenuOption
- FatalErrorForm
-
GetDataEvent<
T> - HelperFunctions
- HomeForm
- HomeFormState
- ImageButtons
- KeyInterceptor
- LoadingIndicator
- LoginDialog
- LoginDialogState
- MenuOption
- item on the main menu, containing tabitems on a lower level.
- MenuOptionState
-
MultiSelect<
T> -
MultiSelectState<
T> - NotificationBloc
- NotificationEvent
- NotificationFetch
- NotificationReceive
- NotificationSend
- NotificationState
- PersistFunctions
- RegisterUserDialog
- RouteStackItem
- SendResetPasswordDialog
- SplashForm
- TabItem
- menu items at the second level. at the top for web, at the bottom for mobile
- TableData
- a program to generate the structure for the TableView,builder 2d scrollable Input data definition
- TableRowContent
- Table field definition
- ThemeBloc
- ThemeEvent
- ThemeModeGet
- ThemeState
- ThemeSwitch
- TopApp
- WsClient
Mixins
Extensions
- CustomizableDateTime on DateTime
- DateOnly on DateTime?
- DateOnlyCompare on DateTime
- LastChar on String
- StringExtension on String
- StringTruncation on String?
- UsCurrency on Decimal?
- currency extension to display currencies with a symbol and amount separated US style with ',' and '.' when currency is missing no ',' is displayed to avoid input format problems
Constants
- darkColorScheme → const ColorScheme
- lightColorScheme → const ColorScheme
Functions
-
appBarTitle(
BuildContext context, String title, bool isPhone) → Widget -
authDroppable<
E> (Duration duration) → EventTransformer< E> -
buildDioClient(
{Duration timeout = const Duration(seconds: 15), String? overrideUrl}) → Future< Dio> - https://kamaravichow.medium.com/caching-with-dio-hive-in-flutter-e630ac5fc777
-
confirmDeleteUserComp(
BuildContext context, UserGroup userGroup) → dynamic - dialog returns true when company delete, false when not, null when cancelled
-
confirmDialog(
BuildContext context, String title, String content) → dynamic - dialog returns true when continue, false when cancelled
-
coreRoute(
RouteSettings settings) → Route -
createJsonObject<
T> (T object, T Function(String json) toJson()) → String -
dataEventDroppable<
E> (Duration duration) → EventTransformer< E> -
get2dTableData<
T> (TableData getTableData(Bloc bloc, String classificationId, BuildContext context, T item, int index, {dynamic extra}), {required Bloc bloc, required String classificationId, required BuildContext context, required List< T> items, double? screenWidth, dynamic extra}) → (List<List< , List<TableViewCell> >double> , double?) -
getBackendUrlOverride(
String classificationId, String version) → Future< void> - Checks if there is an override for the production/test backend URL Updates the GlobalConfiguration with the new backend URL if available
-
getCoreBlocProviders(
RestClient restClient, WsClient chatClient, WsClient notificationClient, String classificationId, Company? company) → List< BlocProvider< StateStreamableSource< >Object?> > -
getJsonObject<
T> (String result, T fromJson(Map< String, dynamic> json)) → T -
isAPhone(
dynamic context) → bool -
isLargerThanPhone(
dynamic context) → bool -
isPhone(
dynamic context) → bool -
lookupCoreLocalizations(
Locale locale) → CoreLocalizations -
makeDashboardItem(
String key, BuildContext context, List< String> subTitles) → Card -
myDrawer(
BuildContext context, bool isPhone, ) → Widget? -
notificationDroppable<
E> (Duration duration) → EventTransformer< E> -
popUp(
{Widget? child, String title = '', double height = 400, double? width, double padding = 10, bool? closeButton = true, required BuildContext context}) → Widget -
popUpDialog(
{required BuildContext context, required List< Widget> children, String title = '', double height = 400, double width = 400, Key key = const Key('popUp')}) → Widget -
popUpDialogNoScaffold(
{required BuildContext context, required List< Widget> children, String title = '', double height = 400, double width = 400, Key key = const Key('popUp')}) → Widget -
snackBar(
BuildContext context, Color colors, String message, {int? seconds}) → SnackBar