2026-03-13 17:25:29 +08:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
const homeBackgroundFieldKey = ValueKey('home_background_field');
|
|
|
|
|
|
|
|
|
|
class HomeBackgroundField extends StatelessWidget {
|
|
|
|
|
const HomeBackgroundField({super.key});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
2026-03-27 19:07:39 +08:00
|
|
|
final colorScheme = Theme.of(context).colorScheme;
|
|
|
|
|
|
2026-03-13 17:25:29 +08:00
|
|
|
return DecoratedBox(
|
|
|
|
|
key: homeBackgroundFieldKey,
|
2026-03-27 19:07:39 +08:00
|
|
|
decoration: BoxDecoration(
|
2026-03-13 17:25:29 +08:00
|
|
|
gradient: LinearGradient(
|
|
|
|
|
begin: Alignment.topCenter,
|
|
|
|
|
end: Alignment.bottomCenter,
|
2026-03-27 19:07:39 +08:00
|
|
|
colors: [colorScheme.surface, colorScheme.surfaceContainerLowest],
|
2026-03-13 17:25:29 +08:00
|
|
|
),
|
|
|
|
|
),
|
2026-03-29 21:46:26 +08:00
|
|
|
child: const SizedBox.expand(),
|
2026-03-13 17:25:29 +08:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|