update
This commit is contained in:
parent
ecc427c958
commit
ee1884790a
11 changed files with 113 additions and 127 deletions
30
lib/widgets/page_background_widget.dart
Normal file
30
lib/widgets/page_background_widget.dart
Normal 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,
|
||||
));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue