backgroundBoxDecoration function
Default BoxDecoration with LinearGradient shown during transition.
Implementation
BoxDecoration backgroundBoxDecoration(BuildContext context) {
return BoxDecoration(
gradient: LinearGradient(
colors: [
Theme.of(context).appBarTheme.backgroundColor ??
Theme.of(context).canvasColor,
Theme.of(context).appBarTheme.foregroundColor ??
Theme.of(context).primaryColor,
Theme.of(context).appBarTheme.backgroundColor ??
Theme.of(context).canvasColor,
],
begin: Alignment.topLeft,
end: Alignment.bottomRight,
),
);
}