NomoInputThemeData constructor
const
NomoInputThemeData({
- Color background = Colors.white,
- Color errorColor = Colors.redAccent,
- BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(8)),
- Border border = const Border.fromBorderSide(BorderSide(color: Colors.transparent, width: 2)),
- Border selectedBorder = const Border.fromBorderSide(BorderSide(color: primaryColor, width: 2)),
- Border errorBorder = const Border.fromBorderSide(BorderSide(color: Colors.red, width: 2)),
- Border selectedErrorBorder = const Border.fromBorderSide(BorderSide(color: Colors.redAccent, width: 2)),
- EdgeInsetsGeometry margin = EdgeInsets.zero,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
- Duration duration = const Duration(milliseconds: 200),
- Cubic curve = Curves.easeInOut,
- 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,
});