GradientBackground constructor
const
GradientBackground(
- {Key? key,
- required Widget child,
- List<
Color> colors = const [Color(0xffff9800), Color(0xfff44336)], - List<
Color> darkColors = const [Color(0xff13191f), Color(0xff262f3c)], - List<
double> stops = const [0.2, 0.8], - AlignmentGeometry begin = FractionalOffset.topLeft,
- 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);