XSchedaState<T extends XFDataItem> class

Inheritance
Mixed-in types
Available extensions

Constructors

XSchedaState.new()

Properties

audioPlayers List<AudioPlayer>?
getter/setter pair
borderColor_Active bool
getter/setter pair
btnUpdateChangesShow bool
getter/setter pair
cameraDirectory Directory
getter/setter pair
context BuildContext
The location in the tree where this widget builds.
no setterinherited
createAudio bool?
getter/setter pair
currentTabIndex int
getter/setter pair
dettHeader_Active bool
getter/setter pair
detts_tabController TabController?
getter/setter pair
editedPage ValueNotifier<bool>
getter/setter pair
enteredInEditOnCell bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
imagePicker ↔ ImagePicker?
getter/setter pair
isBusy bool
getter/setter pair
itemInEdit_Clone ↔ T
getter/setter pair
liBottomActions List<XBottomNavigationBarItem>
getter/setter pair
liDelItems List
getter/setter pair
liDettTabs List<XTabItem>
getter/setter pair
mounted bool
Whether this State object is currently in a tree.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sconto_Controller TextEditingController
getter/setter pair
selectedAudioPlayer → AudioPlayer
no setter
selectedPlayerIdx int
getter/setter pair
tabController TabController
Per gestire i Tab
getter/setter pair
vsync TickerProvider?
getter/setter pair
waiterMessage String
getter/setter pair
widget XScheda<T>
The current configuration.
no setterinherited
xEditDialog_EditCell String
getter/setter pair
xEditDialog_liProps List<XProp>
getter/setter pair
xFileUI File?
getter/setter pair
xFormat_Date String
getter/setter pair
xLayout_maxRowLen double
getter/setter pair
xTab_Active XTabItem?
getter/setter pair
xTabs ValueNotifier<List<XTabItem>>
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
Describes the part of the user interface represented by this widget.
override
builder_AudioArea(List<XMediaItem>? liAudio, XFDataItem xclItem) Widget

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

builder_ImmaginiArea(List<XMediaItem>? liImage, {String? parentID, DateTime? dt}) Widget

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

builder_VideoArea(List? liVideo, XFDataItem? xclItem) Widget

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

builderXEditDialog_BTNs(XFDataItem item, TextEditingController controller, String valueAndLabel, bool isSconto, void parentSetState(void ()), {XCol? xCol}) → XBtnbase

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

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
calcCell_Negative(XCol xCol, TextEditingController controller, dynamic numForCalc) → dynamic

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

calcCell_Positive(XCol xCol, TextEditingController controller, dynamic numForCalc) → dynamic

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

calcDoc(XCol? xCol, dynamic newValue) → dynamic
se chiamato dopo che è stato aggiunto un dettaglio, il xCol è NULL e newValue è l'item del dettaglio aggiunto
calcSconto(TextEditingController controller, String value) → dynamic

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

cmd_Back() Future<bool>
cmd_GetAudio(void setState(void ()), XFDataItem xfDataItem) Future<File?>
cmd_GetMedia(void setState(void ()), XFDataItem item) Future<File?>
cmd_OpenPhoto(Uint8List img, String imgID, {DateTime? dtImage}) → dynamic

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

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
editPage() → dynamic
B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L /// /// B L ///
generateVideoThumbnail(String blobURL) Future<Uint8List?>

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

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
onTakePicture(XFile file, bool isBusy, void setState(void ()), XFDataItem xfDataItem) → dynamic
onTakeVideo(XFile file, bool isBusy, void setState(void ()), XFDataItem xfDataItem) → dynamic
pause() Future<void>

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

play(Uint8List audioPayload, void setState(void ())) Future<void>

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
rebuildAllChildren(BuildContext context) → void
setAudio(Uint8List payload, String blobFullName) Future<bool>
setImage(Uint8List payload, String blobFullName) Future<bool>
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
setVideo(Uint8List payload, String blobFullName) Future<bool>
superSetState(VoidCallback fn) → void
tabsChangeActive(String tabKey, {bool forceAdd = false}) → dynamic
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
updateCaption() → dynamic
DO NOTHING => widget.title = itemInEdit_Clone .isNew ? "Nuovo Cliente" : itemInEdit_Clone.nickName;;
xActionsItem_AddMedia(XFDataItem item) Widget
xActionsItem_ViewDett(XFDataItem item, bool dett_Active, void parentSetState(void ()), XView xView_Scheda, {String? title}) Widget
xBottomBarAction_OnTap(int currentIdx, XBottomNavigationBarItem act, void parentSetState(void ())) → dynamic
xBottomBarActions_Fill(bool dataChanged) → 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
xBoxDecorationStyleCircular_ForMenu(Color? color) → dynamic
xCMD_DeleteFromList(XFDataItem itemToRemove, String title, {required List listFromClone_RemoveItem, required List listFromOriginal_RemoveItem, required dynamic cmd_Delete(String)}) Future<bool>
xcmd_Save() → dynamic
Da chiamare ogni volta che si vuole salvare il dato Clonato in quello Originale
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
xDett_Item_HeadWidget(dynamic itemDett, void parentSetState(void ()), {XView? xclViewUI}) Widget
Widget per la costruzione dell'Head all'interno dei Dettagli
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
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
xDett_Item_xOnLongTap(dynamic item) Future
Da Overridare per gestire il LongPress sul DettItem
xDetts_Action_Delete(XFDataItem item) Future<XFDataItem>
xDetts_Action_Edit(XFDataItem item) Future<XFDataItem>
xEditDialog(XFDataItem item, String title, dynamic value, XCol xCol, {List<ScontiBTN>? liSconti}) Future

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

xEditDialog_CellBuilder(XFDataItem item, XCol xCol, BuildContext context, void setState(void ()), TextEditingController controller, {TextInputType? keyboardType, bool autoFocus = true, bool label_Visible = false, List<TextInputFormatter>? inputFormatters}) Container

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

xEditDialog_Number(XFDataItem item, XCol xCol, TextEditingController textController, void parentSetState(void ())?, {bool btnNumberActive = true}) Widget

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

xEditDialog_Override_Editor(String title, dynamic value, XCol xCol, TextEditingController controller, {dynamic item}) Widget?
Da overridare per sovrascrivere il Widget all'interno dell'EdiDialog
xEditDialog_Sconto(XFDataItem item, XCol xCol, TextEditingController textController, void parentSetState(void ())?, {List<ScontiBTN>? liSconti, bool calc = false}) Widget

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

xfillxTabs({String? xCol_Key, bool forceAdd = false}) → dynamic
xfillxTabsDetts(XCol xCol, void parentSetState(void ())) → dynamic
xInitList_AddDetts() List<XItem_BTNadd>
xLayout_AppBar_AdditionalActions() List<Widget>
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_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_DialogAddItem(XView xView, XFDataItem item, void setState(void ()), {List<ScontiBTN>? liSconti}) Future<XFDataItem?>

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

xLayout_GetTitleWidget(int originY) Widget
Da Overridare per gestire gestire i titoli delle sezioni delle celle nell'HEAD
xLayout_HeadAreaBuilder({XView? xclView}) Widget
Widget che torna un
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) List<Widget>
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) → dynamic
xLayout_Widget_UnderDett(dynamic d, void parentSetState(void ())) Widget?
Da overridare per Modificare la parte sotto all'HEAD
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
xOnAddDett(T item) Future<bool>
Da Overridare per gestire l'aggiunta di un Item
xOnAddNewDett(XFDataItem item) → XFDataItem
xOnAfterActionOnDett(XFDataItem xclObject) → XFDataItem?
xOnAfterActionOnDett_INTERNAL(XFDataItem xclObject) → XFDataItem?
NOT TO OVERRIDE !
xOnBeforeAddDett(XFDataItem xclObject) → XFDataItem?
xOnChangeData(XCol xCol, dynamic newValue, void parentSetState(void ())) → void
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!;
xPreview_Dialog(XView xView, dynamic value) Future<XFDataItem?>

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

xSch_DateFormField_Builder({required XCol xCol, required dynamic onDateSelected(DateTime)?, bool editable = true, DateTime? value, Color? borderColor, Color? borderColor_Disabled, Color? labelColor_Disabled, dynamic onBefore_Edit()?, TextEditingController? controller, String? format}) Widget

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

xSch_Text_Builder<T>({required BuildContext context, required XCol xCol, required String value, List<TextInputFormatter>? inputFormatters, double? height}) Widget

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

xSch_TextFormField_Builder<T>({required BuildContext context, required XCol xCol, dynamic onChanged(String)?, dynamic onSubmitted(String)?, String? hintText, List<TextInputFormatter>? inputFormatters, TextInputType? keyboardType, bool editable = true, bool label_Visible = true, bool autoFocus = false, String? value, bool? selectText, bool? multiLines, double? height, int? maxLines, Color? borderColor, Color? borderColor_Disabled, Color? labelColor_Disabled, Color? backgorundColor, Color? backgorundColor_Disabled, TextEditingController? controller, dynamic onBefore_Edit()?}) Widget

Available on XSchedaState<XFDataItem>, provided by the BuilderSchWidget extension

xTabView_Widget(XCol xCol) Widget?
Da overridare per Modificare la costruzione totale del Widget delle ROW
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
xWidget_OnBeforeInit_SchLayout(T item) Future<bool?>
Da Overridare se si vuole intervenire prima dell'init della Scheda

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
getter/setter pair
media_isActive bool
getter/setter pair
widthBetweenCell double
getter/setter pair