feedback_send_large.dart 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import 'package:cpt_main/modules/feedback/create/feedback_create_page.dart';
  2. import 'package:cs_resources/generated/assets.dart';
  3. import 'package:cs_resources/generated/l10n.dart';
  4. import 'package:cs_resources/theme/app_colors_theme.dart';
  5. import 'package:flutter/material.dart';
  6. import 'package:plugin_platform/engine/toast/toast_engine.dart';
  7. import 'package:widgets/ext/ex_widget.dart';
  8. import 'package:widgets/my_button.dart';
  9. import 'package:widgets/my_load_image.dart';
  10. import 'package:widgets/my_text_view.dart';
  11. class FeedbackSendLarge extends StatelessWidget {
  12. @override
  13. Widget build(BuildContext context) {
  14. return Container(
  15. padding: const EdgeInsets.symmetric(horizontal: 38),
  16. width: double.infinity,
  17. height: double.infinity,
  18. child: Center(
  19. child: Column(
  20. mainAxisSize: MainAxisSize.min,
  21. crossAxisAlignment: CrossAxisAlignment.center,
  22. children: [
  23. const MyAssetImage(Assets.mainFeedbackSendImg, width: 237.5, height: 177).marginOnly(top: 15, bottom: 26),
  24. MyTextView(
  25. S.current.feedback_msg_1,
  26. fontSize: 17,
  27. textAlign: TextAlign.center,
  28. isFontBold: true,
  29. textColor: context.appColors.textBlack,
  30. ),
  31. MyTextView(
  32. S.current.feedback_msg_2,
  33. fontSize: 15,
  34. marginTop: 12,
  35. textAlign: TextAlign.center,
  36. isFontMedium: true,
  37. textColor: context.appColors.textBlack,
  38. ),
  39. MyButton(
  40. onPressed: () {
  41. FeedbackCreatePage.startInstance(context: context);
  42. },
  43. text: S.current.create_new_feedback,
  44. textColor: Colors.white,
  45. disabledTextColor: Colors.white,
  46. backgroundColor: context.appColors.btnBgDefault,
  47. fontWeight: FontWeight.w500,
  48. type: ClickType.throttle,
  49. minHeight: 50,
  50. radius: 5,
  51. ).marginOnly(top: 20, bottom: 30),
  52. ],
  53. ),
  54. ),
  55. );
  56. }
  57. }