NomoInputThemeData constructor

const NomoInputThemeData({
  1. Color background = Colors.white,
  2. Color errorColor = Colors.redAccent,
  3. BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(8)),
  4. Border border = const Border.fromBorderSide(BorderSide(color: Colors.transparent, width: 2)),
  5. Border selectedBorder = const Border.fromBorderSide(BorderSide(color: primaryColor, width: 2)),
  6. Border errorBorder = const Border.fromBorderSide(BorderSide(color: Colors.red, width: 2)),
  7. Border selectedErrorBorder = const Border.fromBorderSide(BorderSide(color: Colors.redAccent, width: 2)),
  8. EdgeInsetsGeometry margin = EdgeInsets.zero,
  9. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
  10. Duration duration = const Duration(milliseconds: 200),
  11. Cubic curve = Curves.easeInOut,
  12. double titleSpacing = 2.0,
})

Implementation

const NomoInputThemeData({
  this.background = Colors.white,
  this.errorColor = Colors.redAccent,
  this.borderRadius = const BorderRadius.all(Radius.circular(8)),
  this.border = const Border.fromBorderSide(
      BorderSide(color: Colors.transparent, width: 2)),
  this.selectedBorder =
      const Border.fromBorderSide(BorderSide(color: primaryColor, width: 2)),
  this.errorBorder =
      const Border.fromBorderSide(BorderSide(color: Colors.red, width: 2)),
  this.selectedErrorBorder = const Border.fromBorderSide(
      BorderSide(color: Colors.redAccent, width: 2)),
  this.margin = EdgeInsets.zero,
  this.padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
  this.duration = const Duration(milliseconds: 200),
  this.curve = Curves.easeInOut,
  this.titleSpacing = 2.0,
});