ControlOptions constructor
ControlOptions({
- NsgSwitchHorizontalStyle nsgSwitchHorizontalStyle = const NsgSwitchHorizontalStyle(),
- NsgTableStyle nsgTableStyle = const NsgTableStyle(),
- double fileExchangeVersion = 1.0,
- EdgeInsets nsgInputMargin = const EdgeInsets.all(5),
- bool nsgInputFilled = false,
- bool nsgInputHintAlwaysOnTop = false,
- bool nsgInputHintHidden = false,
- Color nsgInputTextColor = const Color.fromARGB(255, 0, 0, 0),
- Color nsgInputHintColor = const Color.fromARGB(122, 70, 59, 11),
- Color nsgInputBorderColor = const Color.fromARGB(122, 70, 59, 11),
- Color nsgInputBorderActiveColor = const Color.fromARGB(255, 70, 59, 11),
- Color nsginputCloseIconColor = const Color.fromARGB(255, 70, 59, 11),
- Color nsginputCloseIconColorHover = const Color.fromARGB(122, 70, 59, 11),
- Color nsgInputDynamicListTextColor = const Color.fromARGB(255, 0, 0, 0),
- Color nsgInputDynamicListTextSelectedColor = const Color.fromARGB(255, 0, 0, 0),
- Color nsgInputDynamicListBackColor = const Color.fromARGB(255, 0, 0, 0),
- Color nsgInputDynamicListBackSelectedColor = const Color.fromARGB(255, 0, 0, 0),
- Color nsgInputColorFilled = Colors.transparent,
- Color nsgInputColorLabel = Colors.black,
- TextFormFieldType nsgInputOutlineBorderType = TextFormFieldType.underlineInputBorder,
- EdgeInsets nsgInputContentPadding = const EdgeInsets.all(5),
- bool nsgInputShowLabel = true,
- double appMaxWidth = 640,
- double appMinWidth = 320,
- double sizeH1 = 36,
- double sizeH2 = 32,
- double sizeH3 = 28,
- double sizeH4 = 24,
- double sizeXXL = 20,
- double sizeXL = 18,
- double sizeL = 16,
- double sizeM = 14,
- double sizeS = 12,
- double sizeXS = 10,
- double sizeXXS = 9,
- double nsgButtonHeight = 40,
- EdgeInsets nsgButtonMargin = const EdgeInsets.all(5),
- double borderRadius = 15.0,
- Map<
String, List< gradients = const {'main' : [Color.fromRGBO(233, 200, 45, 1), Color.fromARGB(255, 153, 128, 16)]},Color> > - Color colorModalBack = const Color.fromARGB(150, 0, 0, 0),
- Color colorMain = const Color.fromRGBO(233, 200, 45, 1),
- Color colorMainBack = const Color.fromRGBO(255, 255, 255, 1),
- Color colorMainText = const Color.fromARGB(255, 70, 59, 11),
- Color colorText = const Color.fromARGB(255, 70, 59, 11),
- Color colorInverted = const Color.fromRGBO(255, 255, 255, 1),
- Color colorMainOpacity = const Color.fromRGBO(242, 239, 253, 1),
- Color colorMainDark = const Color.fromARGB(255, 192, 163, 34),
- Color tableHeaderColor = const Color.fromARGB(255, 192, 163, 34),
- Color tableCellBackColor = const Color.fromRGBO(255, 255, 255, 1),
- Color tableHeaderArrowsColor = const Color.fromRGBO(255, 255, 255, 1),
- Color tableHeaderLinesColor = const Color.fromRGBO(233, 200, 45, 1),
- Color colorMainDarker = const Color.fromARGB(255, 153, 128, 16),
- Color colorMainLight = const Color.fromARGB(255, 255, 245, 201),
- Color colorMainLighter = const Color.fromARGB(255, 255, 245, 201),
- Color colorSecondaryDark = const Color.fromRGBO(255, 255, 255, 1),
- Color colorSecondaryLight = const Color.fromRGBO(255, 255, 255, 1),
- Color colorWhite = const Color.fromRGBO(255, 255, 255, 1),
- Color colorSecondaryText = const Color.fromARGB(255, 70, 59, 11),
- Color colorNormal = const Color.fromARGB(255, 29, 180, 95),
- Color colorError = const Color.fromRGBO(208, 8, 8, 1),
- Color colorWarning = const Color.fromARGB(255, 199, 101, 10),
- Color colorConfirmed = const Color.fromARGB(255, 31, 138, 75),
- Color colorBlue = const Color.fromRGBO(0, 88, 163, 1),
- Color colorGrey = const Color.fromARGB(255, 77, 77, 77),
- Color colorGreyLight = const Color.fromARGB(255, 150, 150, 150),
- Color colorGreyLighter = const Color.fromARGB(255, 230, 230, 230),
- Color colorGreyDark = const Color.fromARGB(255, 55, 55, 55),
- Color colorGreyDarker = const Color.fromARGB(255, 33, 33, 33),
- Color colorPrimary = const Color.fromRGBO(233, 200, 45, 1),
- Color colorPrimaryText = const Color.fromARGB(255, 33, 33, 33),
- Color colorSecondary = const Color.fromRGBO(255, 255, 255, 1),
- Color colorTertiary = const Color.fromRGBO(255, 255, 255, 1),
- Color colorNeutral = const Color.fromRGBO(255, 255, 255, 1),
- Color colorSuccess = const Color.fromARGB(255, 31, 138, 75),
- Color colorBase = const Color.fromRGBO(255, 255, 255, 1),
- Color colorOverlay = const Color.fromARGB(150, 0, 0, 0),
Implementation
ControlOptions({
this.nsgSwitchHorizontalStyle = const NsgSwitchHorizontalStyle(),
this.nsgTableStyle = const NsgTableStyle(),
this.fileExchangeVersion = 1.0,
this.nsgInputMargin = const EdgeInsets.all(5),
this.nsgInputFilled = false,
this.nsgInputHintAlwaysOnTop = false,
this.nsgInputHintHidden = false,
this.nsgInputTextColor = const Color.fromARGB(255, 0, 0, 0),
this.nsgInputHintColor = const Color.fromARGB(122, 70, 59, 11),
this.nsgInputBorderColor = const Color.fromARGB(122, 70, 59, 11),
this.nsgInputBorderActiveColor = const Color.fromARGB(255, 70, 59, 11),
this.nsginputCloseIconColor = const Color.fromARGB(255, 70, 59, 11),
this.nsginputCloseIconColorHover = const Color.fromARGB(122, 70, 59, 11),
this.nsgInputDynamicListTextColor = const Color.fromARGB(255, 0, 0, 0),
this.nsgInputDynamicListTextSelectedColor = const Color.fromARGB(255, 0, 0, 0),
this.nsgInputDynamicListBackColor = const Color.fromARGB(255, 0, 0, 0),
this.nsgInputDynamicListBackSelectedColor = const Color.fromARGB(255, 0, 0, 0),
this.nsgInputColorFilled = Colors.transparent,
this.nsgInputColorLabel = Colors.black,
this.nsgInputOutlineBorderType = TextFormFieldType.underlineInputBorder,
this.nsgInputContentPadding = const EdgeInsets.all(5),
this.nsgInputShowLabel = true,
this.appMaxWidth = 640,
this.appMinWidth = 320,
this.sizeH1 = 36,
this.sizeH2 = 32,
this.sizeH3 = 28,
this.sizeH4 = 24,
this.sizeXXL = 20,
this.sizeXL = 18,
this.sizeL = 16,
this.sizeM = 14,
this.sizeS = 12,
this.sizeXS = 10,
this.sizeXXS = 9,
this.nsgButtonHeight = 40,
this.nsgButtonMargin = const EdgeInsets.all(5),
this.borderRadius = 15.0,
this.gradients = const {
'main': [Color.fromRGBO(233, 200, 45, 1), Color.fromARGB(255, 153, 128, 16)],
},
//@Deprecated('Old variable. Use colorOverlay')
this.colorModalBack = const Color.fromARGB(150, 0, 0, 0),
//@Deprecated('Old variable. Use colorPrimary')
this.colorMain = const Color.fromRGBO(233, 200, 45, 1),
//@Deprecated('Old variable. Use colorBase')
this.colorMainBack = const Color.fromRGBO(255, 255, 255, 1),
//@Deprecated('Old variable. Use colorBase[int]')
this.colorMainText = const Color.fromARGB(255, 70, 59, 11),
//@Deprecated('Old variable. Use colorBase[int]f')
this.colorText = const Color.fromARGB(255, 70, 59, 11),
//@Deprecated('Old variable. Use colorBase[int]')
this.colorInverted = const Color.fromRGBO(255, 255, 255, 1),
this.colorMainOpacity = const Color.fromRGBO(242, 239, 253, 1),
// @Deprecated('Old variable. Use colorPrimary[int]')
this.colorMainDark = const Color.fromARGB(255, 192, 163, 34),
this.tableHeaderColor = const Color.fromARGB(255, 192, 163, 34),
this.tableCellBackColor = const Color.fromRGBO(255, 255, 255, 1),
this.tableHeaderArrowsColor = const Color.fromRGBO(255, 255, 255, 1),
this.tableHeaderLinesColor = const Color.fromRGBO(233, 200, 45, 1),
//@Deprecated('Old variable. Use colorPrimary[int]')
this.colorMainDarker = const Color.fromARGB(255, 153, 128, 16),
//@Deprecated('Old variable. Use colorPrimary[int]')
this.colorMainLight = const Color.fromARGB(255, 255, 245, 201),
//@Deprecated('Old variable. Use colorPrimary[int]')
this.colorMainLighter = const Color.fromARGB(255, 255, 245, 201),
//@Deprecated('Old variable. Use colorSecondary[int]')
this.colorSecondaryDark = const Color.fromRGBO(255, 255, 255, 1),
//@Deprecated('Old variable. Use colorSecondary[int]')
this.colorSecondaryLight = const Color.fromRGBO(255, 255, 255, 1),
this.colorWhite = const Color.fromRGBO(255, 255, 255, 1),
//@Deprecated('Old variable. Use colorSecondary')
this.colorSecondaryText = const Color.fromARGB(255, 70, 59, 11),
this.colorNormal = const Color.fromARGB(255, 29, 180, 95),
this.colorError = const Color.fromRGBO(208, 8, 8, 1),
this.colorWarning = const Color.fromARGB(255, 199, 101, 10),
//@Deprecated('Old variable. Use colorSuccess')
this.colorConfirmed = const Color.fromARGB(255, 31, 138, 75),
this.colorBlue = const Color.fromRGBO(0, 88, 163, 1),
this.colorGrey = const Color.fromARGB(255, 77, 77, 77),
this.colorGreyLight = const Color.fromARGB(255, 150, 150, 150),
this.colorGreyLighter = const Color.fromARGB(255, 230, 230, 230),
this.colorGreyDark = const Color.fromARGB(255, 55, 55, 55),
this.colorGreyDarker = const Color.fromARGB(255, 33, 33, 33),
this.colorPrimary = const Color.fromRGBO(233, 200, 45, 1),
this.colorPrimaryText = const Color.fromARGB(255, 33, 33, 33),
this.colorSecondary = const Color.fromRGBO(255, 255, 255, 1),
this.colorTertiary = const Color.fromRGBO(255, 255, 255, 1),
this.colorNeutral = const Color.fromRGBO(255, 255, 255, 1),
this.colorSuccess = const Color.fromARGB(255, 31, 138, 75),
this.colorBase = const Color.fromRGBO(255, 255, 255, 1),
this.colorOverlay = const Color.fromARGB(150, 0, 0, 0),
}) {
NsgApiException.showExceptionDefault = NsgErrorWidget.showError;
// Дефолтная функция с диалоговым окном при закрытии страницы на которой были сделаны изменения (например, в текстовой форме)
NsgBaseController.saveOrCancelDefaultDialog = NsgDialogSaveOrCancel.saveOrCancel;
NsgBaseController.showErrorByString = NsgErrorWidget.showErrorByString;
}