25 lines
662 B
Dart
25 lines
662 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
const homeBackgroundFieldKey = ValueKey('home_background_field');
|
|
|
|
class HomeBackgroundField extends StatelessWidget {
|
|
const HomeBackgroundField({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final colorScheme = Theme.of(context).colorScheme;
|
|
|
|
return DecoratedBox(
|
|
key: homeBackgroundFieldKey,
|
|
decoration: BoxDecoration(
|
|
gradient: LinearGradient(
|
|
begin: Alignment.topCenter,
|
|
end: Alignment.bottomCenter,
|
|
colors: [colorScheme.surface, colorScheme.surfaceContainerLowest],
|
|
),
|
|
),
|
|
child: const SizedBox.expand(),
|
|
);
|
|
}
|
|
}
|