ControlOptions class

Constructors

ControlOptions.new({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<Color>> gradients = const {'main' : [Color.fromRGBO(233, 200, 45, 1), Color.fromARGB(255, 153, 128, 16)]}, 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)})

Properties

appMaxWidth double
Максимальная ширина экрана приложения
getter/setter pair
appMinWidth double
Минимальная ширина экрана приложения
getter/setter pair
borderRadius double
getter/setter pair
colorBase Color
final
colorBlue Color
final
colorConfirmed Color
final
colorError Color
final
colorGrey Color
final
colorGreyDark Color
final
colorGreyDarker Color
final
colorGreyLight Color
final
colorGreyLighter Color
final
colorInverted Color
final
colorMain Color
final
colorMainBack Color
final
colorMainDark Color
final
colorMainDarker Color
final
colorMainLight Color
final
colorMainLighter Color
final
colorMainOpacity Color
final
colorMainText Color
final
colorModalBack Color
final
colorNeutral Color
final
colorNormal Color
final
colorOverlay Color
final
colorPrimary Color
////////////////////////////
final
colorPrimaryText Color
final
colorSecondary Color
final
colorSecondaryDark Color
final
colorSecondaryLight Color
final
colorSecondaryText Color
final
colorSuccess Color
final
colorTertiary Color
final
colorText Color
final
colorWarning Color
final
colorWhite Color
final
dateformat String
Форматирование даты по умолчанию
getter/setter pair
fadeSpeed int
Скорость анимации появления блоков в миллисекундах
getter/setter pair
fileExchangeVersion double
final
gradients Map<String, List<Color>>
///////////////////////////////////
final
hashCode int
The hash code for this object.
no setterinherited
nsgButtonHeight double
Высота в NsgButton
getter/setter pair
nsgButtonMargin EdgeInsets
margin в NsgButton
getter/setter pair
nsgInputBorderActiveColor Color
final
nsgInputBorderColor Color
final
nsginputCloseIconColor Color
final
nsginputCloseIconColorHover Color
final
nsgInputColorFilled Color
final
nsgInputColorLabel Color
final
nsgInputContentPadding EdgeInsets
final
nsgInputDynamicListBackColor Color
final
nsgInputDynamicListBackSelectedColor Color
final
nsgInputDynamicListTextColor Color
final
nsgInputDynamicListTextSelectedColor Color
final
nsgInputFilled bool
final
nsgInputHintAlwaysOnTop bool
final
nsgInputHintColor Color
final
nsgInputHintHidden bool
final
nsgInputMargin EdgeInsets
final
nsgInputOutlineBorderType TextFormFieldType
final
nsgInputShowLabel bool
final
nsgInputTextColor Color
final
nsgSwitchHorizontalStyle NsgSwitchHorizontalStyle
final
nsgTableStyle NsgTableStyle
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenWidth double
no setter
sizeH1 double
getter/setter pair
sizeH2 double
getter/setter pair
sizeH3 double
getter/setter pair
sizeH4 double
getter/setter pair
sizeL double
getter/setter pair
sizeM double
getter/setter pair
sizeS double
getter/setter pair
sizeXL double
getter/setter pair
sizeXS double
getter/setter pair
sizeXXL double
getter/setter pair
sizeXXS double
getter/setter pair
slideBlockWidth double
Размер одного блока с иконкой у сдвигающегося влево блока
no setter
tableCellBackColor Color
final
tableHeaderArrowsColor Color
final
tableHeaderColor Color
final
tableHeaderLinesColor Color
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ControlOptions
getter/setter pair

Static Methods

calculated({required Color colorMain, required Color colorSecondary, double borderRadius = 15, double nsgButtonHeight = 40, EdgeInsets nsgButtonMargin = EdgeInsets.zero, EdgeInsets nsgInputMargin = const EdgeInsets.all(5), bool nsgInputFilled = false, bool nsgInputHintAlwaysOnTop = false, TextFormFieldType nsgInputOutlineBorderType = TextFormFieldType.underlineInputBorder, EdgeInsets nsgInputContentPadding = const EdgeInsets.all(5), Color nsgInputColorLabel = Colors.black, Color nsgInputColorFilled = Colors.transparent}) ControlOptions