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

35 lines
877 B

  1. import 'package:flutter/material.dart';
  2. import 'package:qadirneyriz/config/config.dart';
  3. import 'package:qadirneyriz/widgets/custom_button.dart';
  4. class CustomErrorWidget extends StatelessWidget {
  5. const CustomErrorWidget({
  6. super.key,
  7. this.onPressed,
  8. });
  9. final Function()? onPressed;
  10. @override
  11. Widget build(BuildContext context) {
  12. return Center(
  13. child: Column(
  14. mainAxisAlignment: MainAxisAlignment.center,
  15. children: [
  16. Text(
  17. 'Something went wrong!',
  18. style: TextStyle(
  19. color: config.ui.mainGray,
  20. fontSize: 16,
  21. fontWeight: FontWeight.bold),
  22. ),
  23. const SizedBox(
  24. height: 20,
  25. ),
  26. CustomButton(
  27. hieght: 50, width: 183, text: 'Try again!', onPressed: onPressed)
  28. ],
  29. ),
  30. );
  31. }
  32. }