31 lines
911 B
Dart
31 lines
911 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class PageBackgroundWidget extends StatelessWidget {
|
|
final Widget child;
|
|
|
|
const PageBackgroundWidget({super.key, required this.child});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
alignment: Alignment.center,
|
|
height: MediaQuery.of(context).size.height,
|
|
decoration: const BoxDecoration(
|
|
gradient: RadialGradient(
|
|
tileMode: TileMode.clamp,
|
|
colors: [
|
|
// Color.fromRGBO(132, 84, 125, 1),
|
|
// Color.fromRGBO(96, 48, 90, 1),
|
|
Color.fromRGBO(45, 15, 43, 1),
|
|
Color.fromRGBO(77, 29, 73, 1),
|
|
// Color.fromRGBO(241, 220, 223, 1),
|
|
],
|
|
// begin: Alignment.topCenter,
|
|
// end: Alignment.bottomCenter,
|
|
),
|
|
),
|
|
child: Center(
|
|
child: child,
|
|
));
|
|
}
|
|
}
|