permission_desc_dialog.dart 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. import 'package:flutter/material.dart';
  2. import 'package:widgets/ext/ex_widget.dart';
  3. import '../../utils/dark_theme_util.dart';
  4. import 'package:cs_resources/constants/color_constants.dart';
  5. class PermissionDescDialog extends StatelessWidget {
  6. final String permissionDesc;
  7. const PermissionDescDialog(this.permissionDesc, {super.key});
  8. @override
  9. Widget build(BuildContext context) {
  10. return Align(
  11. alignment: Alignment.topCenter,
  12. child: Container(
  13. margin: const EdgeInsets.symmetric(vertical: 80),
  14. padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 16),
  15. decoration: BoxDecoration(
  16. color: DarkThemeUtil.multiColors(context, const Color(0XB3000000),darkColor: ColorConstants.darkBlackItem) ,
  17. borderRadius: BorderRadius.circular(10),
  18. ),
  19. child: Text(
  20. permissionDesc,
  21. style: const TextStyle(color: Colors.white, fontSize: 15),
  22. textAlign: TextAlign.center,
  23. ),
  24. ).constrained(width: 280),
  25. );
  26. }
  27. }