25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
1.0 KiB

  1. import 'package:flutter/cupertino.dart';
  2. import 'package:flutter/material.dart';
  3. import 'package:flutter/widgets.dart';
  4. import 'package:qadirneyriz/config/config.dart';
  5. class CustomBackground extends StatelessWidget {
  6. final Widget child;
  7. final double? opacity;
  8. const CustomBackground({super.key, required this.child, this.opacity});
  9. @override
  10. Widget build(BuildContext context) {
  11. return Container(
  12. width: double.infinity,
  13. height: double.infinity,
  14. decoration: BoxDecoration(color: config.ui.mainGreen),
  15. child: Column(
  16. mainAxisAlignment: MainAxisAlignment.center,
  17. children: [
  18. Center(
  19. child: Padding(
  20. padding: const EdgeInsets.symmetric(vertical: 50),
  21. child: SizedBox(
  22. width: 500,
  23. child: Image.asset(
  24. 'assets/images/logo.png',
  25. ),
  26. ),
  27. ),
  28. ),
  29. Expanded(
  30. child: child,
  31. )
  32. ],
  33. ),
  34. );
  35. }
  36. }