primaryLinearGradient method

LinearGradient primaryLinearGradient(
  1. BuildContext context
)

Implementation

LinearGradient primaryLinearGradient(BuildContext context) {
  final theme = Theme.of(context);

  return LinearGradient(
    begin: Alignment.bottomLeft,
    end: Alignment.topRight,
    colors: [
      theme.primaryColor,
      ThemeHelper.colors.getSecondaryColor(context),
    ],
  );
}