This commit is contained in:
Patrick Alvin Alcala 2025-01-30 15:57:37 +08:00
parent ecc427c958
commit ee1884790a
11 changed files with 113 additions and 127 deletions

View file

@ -0,0 +1,30 @@
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(77, 29, 73, 1),
// Color.fromRGBO(241, 220, 223, 1),
],
// begin: Alignment.topCenter,
// end: Alignment.bottomCenter,
),
),
child: Center(
child: child,
));
}
}