feedback_send_small.dart 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 FeedbackSendSmall extends StatelessWidget {
  11. @override
  12. Widget build(BuildContext context) {
  13. return SingleChildScrollView(
  14. scrollDirection: Axis.vertical,
  15. physics: const BouncingScrollPhysics(),
  16. child: Container(
  17. margin: const EdgeInsets.symmetric(horizontal: 38),
  18. width: double.infinity,
  19. child: Column(mainAxisSize: MainAxisSize.max, crossAxisAlignment: CrossAxisAlignment.center, children: [
  20. const MyAssetImage(Assets.mainFeedbackSendImg, width: 237.5, height: 177).marginOnly(top: 15, bottom: 26),
  21. MyTextView(
  22. S.current.feedback_msg_1,
  23. fontSize: 17,
  24. textAlign: TextAlign.center,
  25. isFontBold: true,
  26. textColor: context.appColors.textBlack,
  27. ),
  28. MyTextView(
  29. S.current.feedback_msg_2,
  30. fontSize: 15,
  31. marginTop: 12,
  32. textAlign: TextAlign.center,
  33. isFontMedium: true,
  34. textColor: context.appColors.textBlack,
  35. ),
  36. MyButton(
  37. onPressed: () {
  38. ToastEngine.show("去填写表单");
  39. },
  40. text: S.current.create_new_feedback,
  41. textColor: Colors.white,
  42. disabledTextColor: Colors.white,
  43. backgroundColor: context.appColors.btnBgDefault,
  44. fontWeight: FontWeight.w500,
  45. type: ClickType.throttle,
  46. minHeight: 50,
  47. radius: 5,
  48. ).marginOnly(top: 20, bottom: 30),
  49. ]),
  50. ),
  51. );
  52. ;
  53. }
  54. }