feedback_send_large.dart 2.0 KB

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