XSchedaState<T extends XFDataItem> class

Inheritance
Mixed in types
Available Extensions

Constructors

XSchedaState()

Properties

audioPlayers List<AudioPlayer>?
getter/setter pair
borderColor_Active bool
Bool per Abilitare o Disabilitare i Bordi delle Celle
getter/setter pair
btnUpdateChangesShow bool
Bool per far comparire il BTN di save nella Scheda in Modalità AlertDialog
getter/setter pair
context BuildContext
The location in the tree where this widget builds.
no setterinherited
editedPage ValueNotifier<bool>
Valore che gestische se la Scheda è da Salvare o NO
getter/setter pair
enteredInEditOnCell bool
Decide se si è in edit o no
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
imagePicker ↔ ImagePicker?
getter/setter pair
isBusy bool
Stabilisce se la Scheda deve abilitare il Waiter
getter/setter pair
isKeyboardVisible bool
getter/setter pair
isRecording bool
getter/setter pair
isSchWeb bool
getter/setter pair
isTakingPhoto bool
getter/setter pair
itemInEdit_Clone ↔ T
Oggetto Clone utilizzato dalla Scheda come oggetto da editare che viene fillato nell'init della Sch e poi prima di spedire i dati della scheda viene copiato e inserito nell'oggetto originale widget.itemInEdit
getter/setter pair
liBottomActions List<XBottomNavigationBarItem>
getter/setter pair
liDelItems List
Lista di appoggio degli items dei dettagli da ELIMINARE
getter/setter pair
liMediaRAW List<XMediaItem>
final
liXMedias_MediaRecorder ValueListenable<List<XMediaItem>>
getter/setter pair
mounted bool
Whether this State object is currently in a tree.
no setterinherited
picker → ImagePicker
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saving bool
getter/setter pair
schKey UniqueKey
getter/setter pair
selectedAudioPlayer → AudioPlayer
no setter
selectedPlayerIdx int
getter/setter pair
vsync TickerProvider?
Utilizzato per le Animazioni degli elenchi di Dettaglo
getter/setter pair
widget XScheda<T>
The current configuration.
no setterinherited
xActions_APPBAR List<XAction>?
XActions nella AppBar nell'Area delle Actions a Destra
getter/setter pair
xActions_BOTTOMBAR List<XAction>?
XActions nella BottomBar della Scheda
getter/setter pair
xActions_LEFT List<XAction>?
XActions a SINISTRA dell'Header
getter/setter pair
xActions_LEFT_Width double?
Width dell'Area delle XActions a SINISTRA dell'Header
getter/setter pair
xActions_RIGHT List<XAction>?
XActions a DESTRA dell'Header
getter/setter pair
xActions_RIGHT_Width double?
Width dell'Area delle XActions a DESTRA dell'Header
getter/setter pair
xCells_EditAlert_Active bool
Stabilisce se l'editabilità deve essere fatta nelle celle della scheda o con un alert
getter/setter pair
xController_Sconto TextEditingController
Controller per il campo dello sconto all'interno dell'Alert, se si trova nella view dell'Header.
getter/setter pair
xController_Scroll ScrollController
Controller per lo Scroll della Scheda
getter/setter pair
xController_Tab TabController
Controller per la Gestione dei Tabs princiali dei Detts della Scheda
getter/setter pair
xController_Tab_Dett TabController?
Controller per la Gestione dei Tabs Dett dei Sub-Detts dei Dettagli della Scheda
getter/setter pair
xEditDialog_EditCell String
getter/setter pair
xEditDialog_liProps List<XProp>
getter/setter pair
xFileUI File?
File di appoggio utilizzato per il salvataggio e edit degli XMediaItem
getter/setter pair
xFormat_Date String
Formato per i DateTime che mostrerà la Scheda nei vari campi
getter/setter pair
xLayout_maxRowLen double
Massima lunghezza della riga nel caso di Scheda AlertDialog per la lunchezza delle righe nell'Header
getter/setter pair
xMedia_CreateAudio bool?
Variabile di appoggio per la creazione di Audio
getter/setter pair
xMedia_isActive bool
Decide se la Scheda conterrà XMediaItem o no, di conseguenza abilita varie logiche e comportamenti della UI
getter/setter pair
xResizable_Percent_BottomArea double
Percentuale dell'area BASSA della Scheda default => 0.6
getter/setter pair
xResizable_Percent_TopArea double
Percentuale dell'area ALTA della Scheda default => 0.4
getter/setter pair
xResizable_Title String?
Variabile di Titolo all'interno della barra di Resize delle aree della Scheda
getter/setter pair
xTab_Active XTabItem?
Classe dell'xTab Attivo dei Tab principali non gli xTabs_Dett
getter/setter pair
xTab_CurrentIndex int
Index del Tab corrente dei Tab principali non gli xTabs_Dett
getter/setter pair
xTabs ValueNotifier<List<XTabItem>>
Per gestire i Tab principali e dei figli
getter/setter pair
xTabs_Detts List<XTabItem>
getter/setter pair
xWaiterMessage String
Messaggio visualizzato nel Waiter quando la Scheda ha isBusy = true
getter/setter pair

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
build(BuildContext context) Widget
B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D /// /// B U I L D ///
override
buildXItem<T extends XFDataItem, K>(T item, List liChildrens, dynamic BTNadd_cmdAdd(T), void parentSetState(void ()), {Widget dettItem(dynamic)?, String? BTNadd_label, Widget? mainWidget, Color? backGround_Color, Widget dettWidget(dynamic)?, EdgeInsetsGeometry? margin, List<XPopUpMenuItem>? liPopUpMenu_Items, bool border_Visible = false, bool title_InMainWidget_Visible = false, XView? xView_Scheda, XView? xView_Elenco, XView? xViewDett, List<Widget>? titleLiWidgets, bool viewDett_Data = false}) → dynamic
Widget per la costruzione di ItemComplessi utilizzati nei Dettagli della Scheda
calcDoc(XCol? xCol, dynamic newValue) → dynamic
Override per la gestione dei Calcoli di tutta la Scheda
createTicker(TickerCallback onTick) Ticker
Creates a ticker with the given callback.
inherited
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didChangeDependencies() → void
Called when a dependency of this State object changes.
inherited
didUpdateWidget(covariant XScheda<T> oldWidget) → void
Called whenever the widget configuration changes.
inherited
dispose() → void
Called when this object is removed from the tree permanently.
override
init_Sch() → dynamic
Inizializzo la scheda riempendo l'Item Clone per avere possibilità di fare UNDO mi cerco in li*Raw i miei dettagli
initState() → void
Called when this object is inserted into the tree.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
rebuildAllChildren(BuildContext context) → void
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
superSetState(VoidCallback fn) → void
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited
xActions_LoadLists() Future
Override per aggiungere alle liste delle actions altre actions prima che vengano fillate tutte le varie aree
xBlob_SetAudio(Uint8List payload, String blobFullName) Future<bool>
xBlob_SetImage(Uint8List payload, String blobFullName) Future<bool>
xBlob_SetVideo(Uint8List payload, String blobFullName) Future<bool>
xBottomBarAction_Fill() → dynamic
toBE OVERRIDE chiamata 2 volte, in init e in LAYOUT. la prima serve per far sapere al LAY che deve avere la BottomNavBar senza dover mettere un bool apposta
xBottomBarAction_Fill_INTERNAL() → dynamic
Methodo INTERNO per il riempimento degli XTabs Principali ("Dettagli della Scheda")
xBottomBarAction_OnTap(XBottomNavigationBarItem act, void parentSetState(void ())) Future
xBottomBarAction_OnTap_INTERNAL(int currentIdx, void parentSetState(void ())) Future
xBoxDecorationStyleCircular_ForMenu(Color? color) → dynamic
xCMD_AddFromRubrica(List<Contact> listContact) Future<Contact?>
xCMD_Back() Future<bool>
Comando per il Back dalla Scheda
xCMD_DeleteFromList(XFDataItem itemToRemove, String title, {required List listFromClone_RemoveItem, required List listFromOriginal_RemoveItem, required dynamic cmd_Delete(String)}) Future<bool>
Comando per la cancellazione di un Item dai Dettagli
xCMD_GetAudio(void setState(void ()), XFDataItem xfDataItem) Future<File?>
Comando per la Registrazione di un Audio
xCMD_GetMedia(void setState(void ()), XFDataItem item, {List<XMediaItem>? liXMedia_UI}) Future<List<XMediaItem>?>
Comando per aprire il Widget per la Registrazione degli XMedia
xCMD_Save() Future
B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// Da chiamare ogni volta che si vuole salvare il dato Clonato in quello Originale
xCMD_xOnAddDett() Future
xCreateThumbnails_FromImage(Uint8List image_payload, {int width = 80, int height = 100}) Uint8List
xCreateThumbnails_FromVideoURL(String blobURL) Future<Uint8List?>
xDetts_Action_Delete(XFDataItem item) Future<XFDataItem>
Override per la Gestione del DELETE di un Item dei Dettagli della Scheda
xDetts_Action_Edit(XFDataItem item) Future<XFDataItem?>
Override per la Gestione del EDIT di un Item dei Dettagli della Scheda
xEditDialog_Override_Editor(String title, dynamic value, XCol xCol, TextEditingController controller, {dynamic item}) Container?
L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// /// L A Y O U T /// Da overridare per sovrascrivere il Widget all'interno dell'EdiDialog
xEditDialog_xOnAddItem(XView xView, XFDataItem item, void setState(void ()), {List<ScontiBTN>? liSconti}) Future<XFDataItem?>
EditDialog per l'Aggiunta di un nuovo Items che fa un aggiunta a sequenza per ogni colonna della Vista
xfillxTabs({String? xCol_Key, bool forceAdd = false}) → dynamic
Override per modificare il Fill degli XTabs Principali dellea Scheda
xfillxTabsDetts(XCol xCol, void parentSetState(void ())) → dynamic
Override per modificare il Fill degli XTabs Secoindari all'interno dei Dett della Scheda
xInitList_AddDetts() List<XItem_BTNadd>
xLayout_AppBar_AdditionalActions() List<XAction?>
Da overridare per aggiungere Widgets nelle Actions dell'AppBar
xLayout_asContainer() Widget
Layout della Scheda se è visualizzata come un semplice Widget da inserire in UI
xLayout_asDialog(Widget content) Widget
Layout della Scheda se è visualizzata come Alert Dialog
xLayout_asPage(BuildContext context) Widget
Layout della Scheda se è visualizzata come Pagina completa
xLayout_BodyBuild() Widget?
Da overridare per Modificare la costruzione totale della Pagina
xLayout_BottomArea_OverSch() List<Widget>?
Da overridare per Aggiungere Widgets nella parte bassa del Body della Scheda,posizionati sopra a tutto rispetto all'Asse Y
xLayout_CellWidget(XCol xCol, dynamic item, BuildContext context) Container
BUILDER DEI WIDGET NON EDITABILI///
xLayout_CellWidget_Editable(XCol xCol, dynamic item, BuildContext context, dynamic itemToSet, {bool onBeforeCMD_Active = true, TextEditingController? controller}) Container
BUILDER DEI WIDGET EDITABILI///
xLayout_Dialog(T item, {Widget? contentWidget, String? title, String? BTN_Label_YES, String? BTN_Label_NO, bool BTNno_Visible = true, String? BTN_Label, dynamic onPressed()?}) Future<bool?>
Dialog Generico da Utilizzare
xLayout_FloatingAddBTN(XBottomNavigationBarItem xbtnBarItem) Widget
Da overridare per Modificare il Widget del Bottone di Add che si trova nel FloatingActionButton della Scheda
xLayout_FloatingAddBTN_Widget() Widget?
Da overridare per Modificare il Widget nel FloatingActionButton della Scheda
xLayout_GetTitleWidget(int originY) Widget
Da Overridare per gestire gestire i titoli delle sezioni delle celle nell'HEAD
xLayout_Head_BottomWidget() Widget
Da Overridare per Aggiungere Widgets sotto l'Head della Scheda
xLayout_HeadAreaBuilder({XView? xclView}) Widget
Widget che torna il Widget dell'Header della Scheda con anche gli slider a destra e sinistra con le azioni
xLayout_HeadBuild({XView? xclView}) Widget
xLayout_ItemWidget(dynamic item) Widget?
Da overridare per Modificare la costruzione totale Dell'Item dei dettagli
xLayout_Render_HeadView(XView xview, {bool border_Visible = true}) List<Widget>
Da Overridare per Modificare la Renderizzazione delle celle all'Interno dell'Head
xLayout_Render_HeadView_Widget_forY(MapEntry<int, List<XCol>> e, List<Widget> children, int lastY, bool border_separator, {bool border_Visible = true, Color? border_color}) Widget
Da overridare per Modificare la composizione dei pezzi dell'HEAD
xLayout_Widget_IfEmptyList(XFDataItem dataItem) Widget
Da overridare per modificare il Widget che verrà visualizzato al posto della lista vuota nei Dett della Scheda
xLayout_xActionsItem_AddMedia(XFDataItem item) Widget
xLayout_xActionsItem_ViewDett(XFDataItem item, bool dett_Active, void parentSetState(void ()), XView xView_Scheda, {String? title}) Widget
xLayout_xDett_Item_CellWidget(XCol xCol, XFDataItem item, bool noTextWhenCellValueIsNull, {String formatDate = "dd/MM/yy", int? maxLines}) Widget
Da Overridare se vuoi modificare il Layout delle celle dei Dettagli nell'area ROW della Scheda
xLayout_xDett_Item_HeadWidget(dynamic itemDett, void parentSetState(void ()), {XView? xclViewUI}) Widget
Widget per la costruzione dell'Head all'interno dei Dettagli
xLayout_xDett_Item_LeftWidgets(dynamic item, void parentSetState(void ())) List<Widget>
Da Overridare se vuoi aggiungere Widgets a sinistra dell'Item dei dettagli nell'area ROW
xLayout_xDett_Item_RightWidgets(BuildContext context, T item, double height) Widget
Da Overridare se vuoi aggiungere Widgets a destra dell'Item dei dettagli nell'area ROW
xLayout_XResizer_AdditionalWidgets_AfterTitle() List<Widget>
Da overridare per aggiungere Widgets nel widget XResized prima del titolo
xLayout_XResizer_AdditionalWidgets_BeforeTitle() List<Widget>
Da overridare per aggiungere Widgets nel widget XResized prima del titolo
xMedia_OnBeforeTake(XMediaItem xclMedia, XFDataItem idParent) Future<XMediaItem>
Override per la Gestione degli XMedia prima che vengano Salvati permanentemente sia su Disco che Blob
xMedia_OnSave(List<XMediaItem> liXMedia, XFDataItem item) Future<bool?>?
Override per il Salvataggio degli XMediaItem
xMedia_OnSave_EditedPicture(bool isBusy, void setState(void ()), XMediaItem xfDataItem) → dynamic
xMedia_OnSave_INTERNAL(List<XMediaItem> liXMedia, XFDataItem item) Future<bool?>?
xMedia_OnTake_Handling(Uint8List file, bool isBusy, void setState(void ()), XFDataItem xfDataItem, int mediatype) Future
Override per la Gestione degli XMedia prima che vengano Salvati permanentemente sia su Disco che Blob
xMedia_OnTake_Picture(XFile file, bool isBusy, void setState(void ()), XFDataItem xfDataItem) → dynamic
xMedia_OnTake_Video(XFile file, bool isBusy, void setState(void ()), XFDataItem xfDataItem) → dynamic
xOnActionOnDett(XFDataItem xclObject) Future<XFDataItem?>
xOnAddNewDett(XFDataItem item) Future<XFDataItem?>
xOnAddNewDett_INTERNAL(XFDataItem item) Future<XFDataItem?>
xOnAfter_AddDett(XFDataItem xclObj) Future<XFDataItem?>
xOnAfterActionOnDett(XFDataItem xclObject) → XFDataItem?
xOnAfterActionOnDett_INTERNAL(XFDataItem xclObject) → XFDataItem?
NOT TO OVERRIDE !
xOnBefore_AddDett(XFDataItem? xclObj) Future<XFDataItem?>
xOnBeforeAddDettToList(XFDataItem xclObject) → XFDataItem?
xOnGetXMedia_FromGallery() Future
Apre la Galleria del cellulare per scegliere delle immagini
xOnSaveAfter() → dynamic
Da Overridare per gestire il salvatggio dei dati su Cloud o DB
xOnXCell_Before_Edit(XCol xCol, dynamic value, {dynamic itemToSet}) → dynamic
xOnXCell_Edit_AfterSubmit(XFDataItem itemInEdit, XCol xCol, dynamic newValue, bool valueIsChanged, {dynamic valueForResolved = null, dynamic valueForRealCol = null}) → dynamic
called in a setState
xOnXCell_Edit_BeforeSubmit(XFDataItem itemInEdit, XCol xCol, dynamic newValue, bool valueIsChanged, {dynamic valueForResolved = null, dynamic valueForRealCol = null}) → dynamic
xOnXCell_Edit_OnChanged(XFDataItem itemInEdit, XCol xCol, dynamic newValue) → dynamic
chiamato quando il valore cambia all'interno dell EDITOR della CELLA
xOnXCell_Edit_SubmitValue_INTERNAL(XFDataItem itemInEdit, XCol xCol, dynamic newValue, {dynamic valueForResolved = null, dynamic valueForRealCol = null}) → dynamic
valueForRealCol = value da mettere nella col reale: es artID noi abbiamo sempre colKey = artiID_resolved, la RealCol
xOnXCell_Edit_SubmitValue_ToItem(XFDataItem itemInEdit, XCol xCol, dynamic newValue, bool valueIsChanged, {dynamic valueForResolved = null, dynamic valueForRealCol = null}) → dynamic
only itemInEditxCol.colKey = value!;
xTabs_ChangeActive(String tabKey, {bool forceAdd = false}) → dynamic
Metodo che ciamo ogni volta che voglio cambiare o aggiungere una TAB
xTabViewDett_Widget(dynamic d, int idxTab, void parentSetState(void ())) Widget?
Da overridare per Modificare la costruzione totale del Widget all'interno degli ItemDett delle ROW
xUpdateCaption() → dynamic
DO NOTHING => widget.title = itemInEdit_Clone .isNew ? "Nuovo Cliente" : itemInEdit_Clone.nickName;;

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

color_AppBar_Background Color
getter/setter pair
color_BackGround_EditDialog Color
getter/setter pair
color_Border Color
getter/setter pair
color_BorderDisabled Color
getter/setter pair
color_CellBackGorundDisabled Color?
getter/setter pair
color_HintText Color
getter/setter pair
color_LabelText Color
getter/setter pair
color_Text Color
getter/setter pair
color_TextDisabled Color
getter/setter pair
heightOfEntryField double
Altezza dei campi dell'Header in caso siano Flex
getter/setter pair
widthBetweenCell double
Spaziatura tra i Campi dell'Header
getter/setter pair

Static Methods

extForMediaType(int mediatype) String