ShadowInputBorder constructor
const
ShadowInputBorder({
- required double elevation,
- required Color fillColor,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(8.0)),
- Color shadowColor = Colors.black87,
Creates an shadow border for an InputDecorator
the fillColor parameter is required to cover the shadow beneath the TextField so fillColor value from original TextField will be ignore
The borderRadius parameter defaults to a value where the top left and right corners have a circular radius of 8.0. The borderRadius parameter must not be null.
Implementation
const ShadowInputBorder({
required this.elevation,
required this.fillColor,
this.borderRadius = const BorderRadius.all(Radius.circular(8.0)),
this.shadowColor = Colors.black87,
});