feedback_send_small.dart 2.0 KB

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