backgroundGradient function

LinearGradient backgroundGradient({
  1. required int primaryLinearGradientColor,
  2. required int primaryColor,
})

Implementation

LinearGradient backgroundGradient(
        {required int primaryLinearGradientColor, required int primaryColor}) =>
    LinearGradient(
      begin: Alignment.topLeft,
      end: Alignment.bottomRight,
      stops: const <double>[0, 0.7],
      colors: <Color>[
        Color(primaryLinearGradientColor),
        Color(primaryColor),
      ],
    );