23 lines
548 B
Dart
23 lines
548 B
Dart
|
|
import 'package:flutter/material.dart';
|
||
|
|
|
||
|
|
import '../theme/app_theme.dart';
|
||
|
|
|
||
|
|
class WarmGradientBackground extends StatelessWidget {
|
||
|
|
const WarmGradientBackground({super.key});
|
||
|
|
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
final colors = context.appTokens.warmGradientColors;
|
||
|
|
return DecoratedBox(
|
||
|
|
decoration: BoxDecoration(
|
||
|
|
gradient: LinearGradient(
|
||
|
|
begin: Alignment.topLeft,
|
||
|
|
end: Alignment.bottomRight,
|
||
|
|
colors: colors,
|
||
|
|
),
|
||
|
|
),
|
||
|
|
child: const SizedBox.expand(),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|