| 1 | import 'package:cake_wallet/themes/core/theme_extension.dart'; |
| 2 | import 'package:flutter/material.dart'; |
| 3 | |
| 4 | class GradientBackground extends StatelessWidget { |
| 5 | const GradientBackground({required this.scaffold, super.key}); |
| 6 | |
| 7 | final Widget scaffold; |
| 8 | |
| 9 | @override |
| 10 | Widget build(BuildContext context) { |
| 11 | return Container( |
| 12 | decoration: BoxDecoration( |
| 13 | color: Theme.of(context).colorScheme.surface, |
| 14 | gradient: LinearGradient( |
| 15 | colors: [ |
| 16 | Theme.of(context).colorScheme.surface, |
| 17 | context.customColors.backgroundGradientColor, |
| 18 | ], |
| 19 | begin: Alignment.topCenter, |
| 20 | end: Alignment.bottomCenter, |
| 21 | ), |
| 22 | ), |
| 23 | child: scaffold, |
| 24 | ); |
| 25 | } |
| 26 | } |