update
This commit is contained in:
parent
2d3f5bd96e
commit
f4119130a6
17 changed files with 232 additions and 138 deletions
22
lib/widgets/glossy_container_widget.dart
Normal file
22
lib/widgets/glossy_container_widget.dart
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:glossy/glossy.dart';
|
||||
|
||||
class GlossyContainerWidget extends StatelessWidget {
|
||||
final double height;
|
||||
final Widget child;
|
||||
const GlossyContainerWidget({super.key, required this.height, required this.child});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GlossyContainer(
|
||||
height: MediaQuery.of(context).size.height * height,
|
||||
width: MediaQuery.of(context).size.width,
|
||||
borderRadius: const BorderRadius.all(Radius.circular(16)),
|
||||
color: const Color.fromRGBO(20, 13, 22, 1),
|
||||
border: Border.all(width: 0, color: const Color.fromRGBO(169, 132, 172, 1)),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(32, 32, 32, 40),
|
||||
child: child,
|
||||
));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue