GradientBackground constructor

const GradientBackground(
  1. {Key? key,
  2. required Widget child,
  3. List<Color> colors = const [Color(0xffff9800), Color(0xfff44336)],
  4. List<Color> darkColors = const [Color(0xff13191f), Color(0xff262f3c)],
  5. List<double> stops = const [0.2, 0.8],
  6. AlignmentGeometry begin = FractionalOffset.topLeft,
  7. AlignmentGeometry end = FractionalOffset.bottomRight}
)

Whether or not the color of the gradient should change when turning the device into dark mode.

Implementation

const GradientBackground({
  Key? key,
  required this.child,
  this.colors = const [Color(0xffff9800), Color(0xfff44336)],
  this.darkColors = const [Color(0xff13191f), Color(0xff262f3c)],
  this.stops = const [0.2, 0.8],
  this.begin = FractionalOffset.topLeft,
  this.end = FractionalOffset.bottomRight,
}) : super(key: key);