growerp_core library

Classes

AboutForm
AboutFormHeader
AppBlocObserver
AppNavObserver
AuthBloc
Authbloc controls the connection to the backend
AuthChangePassword
AuthEvent
AuthLoad
AuthLoggedOut
AuthLogin
AuthRegister
AuthResetPassword
AuthState
AuthTest
BottomLoader
ChangeIpForm
ChatDialog
ChatMessageBloc
ChatMessageEvent
ChatMessageFetch
ChatMessageReceiveWs
ChatMessageSendWs
ChatMessageState
ChatRoomBloc
ChatRoomDelete
ChatRoomDialog
ChatRoomDialogState
ChatRoomEvent
ChatRoomFetch
ChatRoomListDialog
ChatRoomListDialogsState
ChatRoomReceiveWsChatMessage
ChatRoomState
ChatRoomUpdate
ChatServer
ChatState
ChatTest
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
KeyDioCacheInterceptor
KeyInterceptor
ListDetail
LoadingIndicator
LoginDialog
LoginDialogState
item on the main menu, containing tabitems on a lower level.
MultiSelect<T>
MultiSelectState<T>
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
TaskBloc
Task bloc to service workflow, workflows templates and tasks It also contains the worflow engine.
TaskCreateUserWorkflow
TaskDeleteUserWorkflow
TaskEvent
TaskFetch
TaskGetUserWorkflows
TaskSetReturnString
TaskState
TaskTimeEntryDelete
TaskTimeEntryUpdate
TaskUpdate
TaskWorkflowCancel
TaskWorkflowNext
TaskWorkflowPrevious
TaskWorkflowSuspend
ThemeBloc
ThemeEvent
ThemeModeGet
ThemeState
ThemeSwitch
TopApp
WorkflowDiagram

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

Functions

appBarTitle(BuildContext context, String title, bool isPhone) Widget
authDroppable<E>(Duration duration) → EventTransformer<E>
buildDioClient({Duration timeout = const Duration(seconds: 10), String? overrideUrl}) Future<Dio>
https://kamaravichow.medium.com/caching-with-dio-hive-in-flutter-e630ac5fc777
chatMessageDroppable<E>(Duration duration) → EventTransformer<E>
chatRoomDroppable<E>(Duration duration) → EventTransformer<E>
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
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<TableViewCell>>, List<double>, double?)
getCoreBlocProviders(RestClient restClient, ChatServer chatServer, String classificationId, Map<String, Widget> screens, 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, MenuOption menuOption, List<String> subTitles) Card
myDrawer(BuildContext context, bool isPhone, List<MenuOption> menu) Widget?
myNavigationRail(BuildContext context, Widget child, int menuIndex, List<MenuOption> menu) Widget
popUpDialog({required BuildContext context, required List<Widget> children, required Key scaffoldkey, 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
taskDroppable<E>(Duration duration) → EventTransformer<E>